Home
last modified time | relevance | path

Searched refs:peer_cert (Results 1 – 25 of 34) sorted by relevance

12

/third_party/mbedtls/library/
Dssl_tls13_generic.c231 if (!mbedtls_pk_can_do(&ssl->session_negotiate->peer_cert->pk, sig_alg)) { in ssl_tls13_parse_certificate_verify()
263 &ssl->session_negotiate->peer_cert->pk, in ssl_tls13_parse_certificate_verify()
414 if (ssl->session_negotiate->peer_cert != NULL) { in mbedtls_ssl_tls13_parse_certificate()
415 mbedtls_x509_crt_free(ssl->session_negotiate->peer_cert); in mbedtls_ssl_tls13_parse_certificate()
416 mbedtls_free(ssl->session_negotiate->peer_cert); in mbedtls_ssl_tls13_parse_certificate()
420 ssl->session_negotiate->peer_cert = NULL; in mbedtls_ssl_tls13_parse_certificate()
425 if ((ssl->session_negotiate->peer_cert = in mbedtls_ssl_tls13_parse_certificate()
434 mbedtls_x509_crt_init(ssl->session_negotiate->peer_cert); in mbedtls_ssl_tls13_parse_certificate()
459 ret = mbedtls_x509_crt_parse_der(ssl->session_negotiate->peer_cert, in mbedtls_ssl_tls13_parse_certificate()
548 MBEDTLS_SSL_DEBUG_CRT(3, "peer certificate", ssl->session_negotiate->peer_cert); in mbedtls_ssl_tls13_parse_certificate()
[all …]
Dssl_tls.c252 if (src->peer_cert != NULL) { in mbedtls_ssl_session_copy()
255 dst->peer_cert = mbedtls_calloc(1, sizeof(mbedtls_x509_crt)); in mbedtls_ssl_session_copy()
256 if (dst->peer_cert == NULL) { in mbedtls_ssl_session_copy()
260 mbedtls_x509_crt_init(dst->peer_cert); in mbedtls_ssl_session_copy()
262 if ((ret = mbedtls_x509_crt_parse_der(dst->peer_cert, src->peer_cert->raw.p, in mbedtls_ssl_session_copy()
263 src->peer_cert->raw.len)) != 0) { in mbedtls_ssl_session_copy()
264 mbedtls_free(dst->peer_cert); in mbedtls_ssl_session_copy()
265 dst->peer_cert = NULL; in mbedtls_ssl_session_copy()
496 if (session->peer_cert != NULL) { in ssl_clear_peer_cert()
497 mbedtls_x509_crt_free(session->peer_cert); in ssl_clear_peer_cert()
[all …]
Dssl_tls12_client.c1946 if (ssl->session_negotiate->peer_cert == NULL) { in ssl_write_encrypted_pms()
1951 peer_pk = &ssl->session_negotiate->peer_cert->pk; in ssl_write_encrypted_pms()
1997 if (ssl->session_negotiate->peer_cert == NULL) { in ssl_get_ecdh_params_from_cert()
2002 peer_pk = &ssl->session_negotiate->peer_cert->pk; in ssl_get_ecdh_params_from_cert()
2303 if (ssl->session_negotiate->peer_cert == NULL) { in ssl_parse_server_key_exchange()
2308 peer_pk = &ssl->session_negotiate->peer_cert->pk; in ssl_parse_server_key_exchange()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/ap/
Dauthsrv.c179 data->peer_cert.depth, in authsrv_tls_event()
180 data->peer_cert.serial_num ? data->peer_cert.serial_num : "N/A", in authsrv_tls_event()
181 data->peer_cert.subject); in authsrv_tls_event()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/ap/
Dauthsrv.c159 data->peer_cert.depth, in authsrv_tls_event()
160 data->peer_cert.serial_num ? data->peer_cert.serial_num : "N/A", in authsrv_tls_event()
161 data->peer_cert.subject); in authsrv_tls_event()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/tls/
Dtlsv1_client_read.c296 ev.peer_cert.cert = cert_buf; in tls_peer_cert_event()
305 ev.peer_cert.hash = hash; in tls_peer_cert_event()
306 ev.peer_cert.hash_len = sizeof(hash); in tls_peer_cert_event()
311 ev.peer_cert.depth = depth; in tls_peer_cert_event()
313 ev.peer_cert.subject = subject; in tls_peer_cert_event()
317 ev.peer_cert.tod = 1; in tls_peer_cert_event()
320 ev.peer_cert.tod = 2; in tls_peer_cert_event()
343 ev.peer_cert.subject = subject; in tls_cert_chain_failure_event()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/crypto/
Dtls_wolfssl.c93 WOLFSSL_X509 *peer_cert; member
875 ev.peer_cert.cert = cert; in wolfssl_tls_cert_event()
886 ev.peer_cert.hash = hash; in wolfssl_tls_cert_event()
887 ev.peer_cert.hash_len = sizeof(hash); in wolfssl_tls_cert_event()
892 ev.peer_cert.depth = depth; in wolfssl_tls_cert_event()
893 ev.peer_cert.subject = subject; in wolfssl_tls_cert_event()
934 ev.peer_cert.altsubject[alt] = alt_subject[alt]; in wolfssl_tls_cert_event()
935 ev.peer_cert.num_altsubject = num_alt_subject; in wolfssl_tls_cert_event()
975 conn->peer_cert = err_cert; in tls_verify_cb()
Dtls_openssl.c265 X509 *peer_cert; member
1649 if (!conn->peer_cert) in tls_connection_peer_serial_num()
1652 ser = X509_get_serialNumber(conn->peer_cert); in tls_connection_peer_serial_num()
2221 ev.peer_cert.cert = cert; in openssl_tls_cert_event()
2230 ev.peer_cert.hash = hash; in openssl_tls_cert_event()
2231 ev.peer_cert.hash_len = sizeof(hash); in openssl_tls_cert_event()
2235 ev.peer_cert.depth = depth; in openssl_tls_cert_event()
2236 ev.peer_cert.subject = subject; in openssl_tls_cert_event()
2243 ev.peer_cert.serial_num = serial_num; in openssl_tls_cert_event()
2285 ev.peer_cert.altsubject[alt] = altsubject[alt]; in openssl_tls_cert_event()
[all …]
Dtls_gnutls.c1311 ev.peer_cert.cert = cert_buf; in tls_connection_verify_peer()
1317 ev.peer_cert.hash = hash; in tls_connection_verify_peer()
1318 ev.peer_cert.hash_len = sizeof(hash); in tls_connection_verify_peer()
1321 ev.peer_cert.depth = i; in tls_connection_verify_peer()
1322 ev.peer_cert.subject = buf; in tls_connection_verify_peer()
Dtls.h72 struct tls_cert_data peer_cert; member
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/crypto/
Dtls_wolfssl.c94 WOLFSSL_X509 *peer_cert; member
879 ev.peer_cert.cert = cert; in wolfssl_tls_cert_event()
890 ev.peer_cert.hash = hash; in wolfssl_tls_cert_event()
891 ev.peer_cert.hash_len = sizeof(hash); in wolfssl_tls_cert_event()
896 ev.peer_cert.depth = depth; in wolfssl_tls_cert_event()
897 ev.peer_cert.subject = subject; in wolfssl_tls_cert_event()
941 ev.peer_cert.altsubject[alt] = alt_subject[alt]; in wolfssl_tls_cert_event()
942 ev.peer_cert.num_altsubject = num_alt_subject; in wolfssl_tls_cert_event()
982 conn->peer_cert = err_cert; in tls_verify_cb()
Dtls_openssl.c270 X509 *peer_cert; member
1662 if (!conn->peer_cert) in tls_connection_peer_serial_num()
1665 ser = X509_get_serialNumber(conn->peer_cert); in tls_connection_peer_serial_num()
2237 ev.peer_cert.cert = cert; in openssl_tls_cert_event()
2246 ev.peer_cert.hash = hash; in openssl_tls_cert_event()
2247 ev.peer_cert.hash_len = sizeof(hash); in openssl_tls_cert_event()
2251 ev.peer_cert.depth = depth; in openssl_tls_cert_event()
2252 ev.peer_cert.subject = subject; in openssl_tls_cert_event()
2259 ev.peer_cert.serial_num = serial_num; in openssl_tls_cert_event()
2301 ev.peer_cert.altsubject[alt] = altsubject[alt]; in openssl_tls_cert_event()
[all …]
Dtls_gnutls.c1311 ev.peer_cert.cert = cert_buf; in tls_connection_verify_peer()
1317 ev.peer_cert.hash = hash; in tls_connection_verify_peer()
1318 ev.peer_cert.hash_len = sizeof(hash); in tls_connection_verify_peer()
1321 ev.peer_cert.depth = i; in tls_connection_verify_peer()
1322 ev.peer_cert.subject = buf; in tls_connection_verify_peer()
Dtls.h72 struct tls_cert_data peer_cert; member
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/tls/
Dtlsv1_client_read.c296 ev.peer_cert.cert = cert_buf; in tls_peer_cert_event()
305 ev.peer_cert.hash = hash; in tls_peer_cert_event()
306 ev.peer_cert.hash_len = sizeof(hash); in tls_peer_cert_event()
311 ev.peer_cert.depth = depth; in tls_peer_cert_event()
313 ev.peer_cert.subject = subject; in tls_peer_cert_event()
335 ev.peer_cert.subject = subject; in tls_cert_chain_failure_event()
/third_party/node/src/quic/
Dtlscontext.h124 v8::MaybeLocal<v8::Object> peer_cert(Environment* env) const;
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/utils/
Dhttp_curl.c62 X509 *peer_cert; member
1023 ctx->peer_cert = cert; in curl_cb_ssl_verify()
1203 if (!ctx->peer_cert) { in ocsp_resp_cb()
1219 id = OCSP_cert_to_id(EVP_sha256(), ctx->peer_cert, ctx->peer_issuer); in ocsp_resp_cb()
1232 id = OCSP_cert_to_id(NULL, ctx->peer_cert, ctx->peer_issuer); in ocsp_resp_cb()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/utils/
Dhttp_curl.c62 X509 *peer_cert; member
1023 ctx->peer_cert = cert; in curl_cb_ssl_verify()
1203 if (!ctx->peer_cert) { in ocsp_resp_cb()
1219 id = OCSP_cert_to_id(EVP_sha256(), ctx->peer_cert, ctx->peer_issuer); in ocsp_resp_cb()
1232 id = OCSP_cert_to_id(NULL, ctx->peer_cert, ctx->peer_issuer); in ocsp_resp_cb()
/third_party/openssl/ssl/statem/
Dstatem_clnt.c3017 X509 *peer_cert; in tls_construct_cke_gost() local
3032 peer_cert = s->session->peer; in tls_construct_cke_gost()
3033 if (peer_cert == NULL) { in tls_construct_cke_gost()
3040 X509_get0_pubkey(peer_cert), in tls_construct_cke_gost()
3165 X509 *peer_cert; in tls_construct_cke_gost18() local
3195 peer_cert = s->session->peer; in tls_construct_cke_gost18()
3196 if (peer_cert == NULL) { in tls_construct_cke_gost18()
3203 X509_get0_pubkey(peer_cert), in tls_construct_cke_gost18()
/third_party/node/deps/openssl/openssl/ssl/statem/
Dstatem_clnt.c3025 X509 *peer_cert; in tls_construct_cke_gost() local
3040 peer_cert = s->session->peer; in tls_construct_cke_gost()
3041 if (peer_cert == NULL) { in tls_construct_cke_gost()
3048 X509_get0_pubkey(peer_cert), in tls_construct_cke_gost()
3173 X509 *peer_cert; in tls_construct_cke_gost18() local
3203 peer_cert = s->session->peer; in tls_construct_cke_gost18()
3204 if (peer_cert == NULL) { in tls_construct_cke_gost18()
3211 X509_get0_pubkey(peer_cert), in tls_construct_cke_gost18()
/third_party/gstreamer/gstplugins_base/gst-libs/gst/rtsp/
Dgstrtspconnection.h114 GTlsCertificate *peer_cert,
/third_party/mbedtls/tests/src/test_helpers/
Dssl_helpers.c1466 session->peer_cert = mbedtls_calloc(1, sizeof(*session->peer_cert)); in mbedtls_test_ssl_tls12_populate_session()
1467 if (session->peer_cert == NULL) { in mbedtls_test_ssl_tls12_populate_session()
1470 *session->peer_cert = tmp_crt; in mbedtls_test_ssl_tls12_populate_session()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/eap_peer/
Deap.c2090 if (data->peer_cert.hash) { in eap_peer_sm_tls_event()
2091 size_t len = data->peer_cert.hash_len * 2 + 1; in eap_peer_sm_tls_event()
2095 data->peer_cert.hash, in eap_peer_sm_tls_event()
2096 data->peer_cert.hash_len); in eap_peer_sm_tls_event()
2100 sm->eapol_cb->notify_cert(sm->eapol_ctx, &data->peer_cert, in eap_peer_sm_tls_event()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/eap_peer/
Deap.c2128 if (data->peer_cert.hash) { in eap_peer_sm_tls_event()
2129 size_t len = data->peer_cert.hash_len * 2 + 1; in eap_peer_sm_tls_event()
2133 data->peer_cert.hash, in eap_peer_sm_tls_event()
2134 data->peer_cert.hash_len); in eap_peer_sm_tls_event()
2138 sm->eapol_cb->notify_cert(sm->eapol_ctx, &data->peer_cert, in eap_peer_sm_tls_event()
/third_party/mbedtls/tests/suites/
Dtest_suite_ssl.function2160 TEST_ASSERT((original.peer_cert == NULL) ==
2161 (restored.peer_cert == NULL));
2162 if (original.peer_cert != NULL) {
2163 TEST_ASSERT(original.peer_cert->raw.len ==
2164 restored.peer_cert->raw.len);
2165 TEST_ASSERT(memcmp(original.peer_cert->raw.p,
2166 restored.peer_cert->raw.p,
2167 original.peer_cert->raw.len) == 0);

12