Home
last modified time | relevance | path

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

12

/third_party/grpc/src/cpp/common/
Dtls_credentials_options.cc54 std::string TlsServerAuthorizationCheckArg::peer_cert() const { in peer_cert() function in grpc::experimental::TlsServerAuthorizationCheckArg
55 std::string cpp_peer_cert(c_arg_->peer_cert); in peer_cert()
86 const std::string& peer_cert) { in set_peer_cert() argument
87 c_arg_->peer_cert = gpr_strdup(peer_cert.c_str()); in set_peer_cert()
/third_party/mbedtls/library/
Dssl_tls13_generic.c395 if( !mbedtls_pk_can_do( &ssl->session_negotiate->peer_cert->pk, sig_alg ) ) in ssl_tls13_parse_certificate_verify()
457 &ssl->session_negotiate->peer_cert->pk, in ssl_tls13_parse_certificate_verify()
610 if( ssl->session_negotiate->peer_cert != NULL ) in ssl_tls13_parse_certificate()
612 mbedtls_x509_crt_free( ssl->session_negotiate->peer_cert ); in ssl_tls13_parse_certificate()
613 mbedtls_free( ssl->session_negotiate->peer_cert ); in ssl_tls13_parse_certificate()
616 if( ( ssl->session_negotiate->peer_cert = in ssl_tls13_parse_certificate()
626 mbedtls_x509_crt_init( ssl->session_negotiate->peer_cert ); in ssl_tls13_parse_certificate()
651 ret = mbedtls_x509_crt_parse_der( ssl->session_negotiate->peer_cert, in ssl_tls13_parse_certificate()
701 MBEDTLS_SSL_DEBUG_CRT( 3, "peer certificate", ssl->session_negotiate->peer_cert ); in ssl_tls13_parse_certificate()
745 ssl->session_negotiate->peer_cert, in ssl_tls13_validate_certificate()
[all …]
Dssl_tls.c194 if( src->peer_cert != NULL ) in mbedtls_ssl_session_copy()
198 dst->peer_cert = mbedtls_calloc( 1, sizeof(mbedtls_x509_crt) ); in mbedtls_ssl_session_copy()
199 if( dst->peer_cert == NULL ) in mbedtls_ssl_session_copy()
202 mbedtls_x509_crt_init( dst->peer_cert ); in mbedtls_ssl_session_copy()
204 if( ( ret = mbedtls_x509_crt_parse_der( dst->peer_cert, src->peer_cert->raw.p, in mbedtls_ssl_session_copy()
205 src->peer_cert->raw.len ) ) != 0 ) in mbedtls_ssl_session_copy()
207 mbedtls_free( dst->peer_cert ); in mbedtls_ssl_session_copy()
208 dst->peer_cert = NULL; in mbedtls_ssl_session_copy()
1617 if( session->peer_cert != NULL ) in ssl_clear_peer_cert()
1619 mbedtls_x509_crt_free( session->peer_cert ); in ssl_clear_peer_cert()
[all …]
/third_party/grpc/test/cpp/client/
Dcredentials_test.cc79 arg->peer_cert = gpr_strdup("callback_peer_cert"); in tls_server_authorization_check_callback()
456 const char* peer_cert_before_callback = c_arg->peer_cert; in TEST_F()
463 EXPECT_STREQ(arg->peer_cert().c_str(), "callback_peer_cert"); in TEST_F()
471 gpr_free(const_cast<char*>(c_arg->peer_cert)); in TEST_F()
494 const char* peer_cert_before_schedule = c_arg->peer_cert; in TEST_F()
501 EXPECT_STREQ(arg->peer_cert().c_str(), "sync_peer_cert"); in TEST_F()
510 gpr_free(const_cast<char*>(c_arg->peer_cert)); in TEST_F()
528 c_arg.peer_cert = "peer_cert"; in TEST_F()
539 EXPECT_STREQ(c_arg.peer_cert, "sync_peer_cert"); in TEST_F()
549 gpr_free(const_cast<char*>(c_arg.peer_cert)); in TEST_F()
[all …]
/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/grpc/src/ruby/spec/
Dclient_auth_spec.rb51 error_msg = "want:\n#{client_cert}\n\ngot:\n#{call.peer_cert}"
52 fail(error_msg) unless call.peer_cert == client_cert
/third_party/grpc/include/grpcpp/security/
Dtls_credentials_options.h65 std::string peer_cert() const;
74 void set_peer_cert(const std::string& peer_cert);
/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/glib/gio/
Dgtlsconnection.h52 GTlsCertificate *peer_cert,
185 GTlsCertificate *peer_cert,
Dgdtlsconnection.h61 GTlsCertificate *peer_cert,
202 … GTlsCertificate *peer_cert,
Dgtlsconnection.c1058 GTlsCertificate *peer_cert, in g_tls_connection_emit_accept_certificate() argument
1064 peer_cert, errors, &accept); in g_tls_connection_emit_accept_certificate()
Dgdtlsconnection.c1008 GTlsCertificate *peer_cert, in g_dtls_connection_emit_accept_certificate() argument
1014 peer_cert, errors, &accept); in g_dtls_connection_emit_accept_certificate()
/third_party/grpc/src/core/lib/security/security_connector/tls/
Dtls_security_connector.cc239 check_arg_->peer_cert = check_arg_->peer_cert == nullptr in check_peer()
241 : check_arg_->peer_cert; in check_peer()
457 arg->peer_cert = nullptr; in ServerAuthorizationCheckArgCreate()
474 gpr_free(const_cast<char*>(arg->peer_cert)); in ServerAuthorizationCheckArgDestroy()
/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.c268 X509 *peer_cert; member
1660 if (!conn->peer_cert) in tls_connection_peer_serial_num()
1663 ser = X509_get_serialNumber(conn->peer_cert); in tls_connection_peer_serial_num()
2235 ev.peer_cert.cert = cert; in openssl_tls_cert_event()
2244 ev.peer_cert.hash = hash; in openssl_tls_cert_event()
2245 ev.peer_cert.hash_len = sizeof(hash); in openssl_tls_cert_event()
2249 ev.peer_cert.depth = depth; in openssl_tls_cert_event()
2250 ev.peer_cert.subject = subject; in openssl_tls_cert_event()
2257 ev.peer_cert.serial_num = serial_num; in openssl_tls_cert_event()
2299 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/grpc/src/ruby/lib/grpc/generic/
Dactive_call.rb578 def attach_peer_cert(peer_cert) argument
579 @peer_cert = peer_cert
/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()

12