Home
last modified time | relevance | path

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

/openthread-2.7.6/third_party/mbedtls/repo/library/
Dssl_cache.c102 if( entry->peer_cert.p != NULL ) in mbedtls_ssl_cache_get()
108 if( ( session->peer_cert = mbedtls_calloc( 1, in mbedtls_ssl_cache_get()
115 mbedtls_x509_crt_init( session->peer_cert ); in mbedtls_ssl_cache_get()
116 if( mbedtls_x509_crt_parse( session->peer_cert, entry->peer_cert.p, in mbedtls_ssl_cache_get()
117 entry->peer_cert.len ) != 0 ) in mbedtls_ssl_cache_get()
119 mbedtls_free( session->peer_cert ); in mbedtls_ssl_cache_get()
120 session->peer_cert = NULL; in mbedtls_ssl_cache_get()
250 if( cur->peer_cert.p != NULL ) in mbedtls_ssl_cache_set()
252 mbedtls_free( cur->peer_cert.p ); in mbedtls_ssl_cache_set()
253 memset( &cur->peer_cert, 0, sizeof(mbedtls_x509_buf) ); in mbedtls_ssl_cache_set()
[all …]
Dssl_tls.c193 if( src->peer_cert != NULL ) in mbedtls_ssl_session_copy()
197 dst->peer_cert = mbedtls_calloc( 1, sizeof(mbedtls_x509_crt) ); in mbedtls_ssl_session_copy()
198 if( dst->peer_cert == NULL ) in mbedtls_ssl_session_copy()
201 mbedtls_x509_crt_init( dst->peer_cert ); in mbedtls_ssl_session_copy()
203 if( ( ret = mbedtls_x509_crt_parse_der( dst->peer_cert, src->peer_cert->raw.p, in mbedtls_ssl_session_copy()
204 src->peer_cert->raw.len ) ) != 0 ) in mbedtls_ssl_session_copy()
206 mbedtls_free( dst->peer_cert ); in mbedtls_ssl_session_copy()
207 dst->peer_cert = NULL; in mbedtls_ssl_session_copy()
2015 if( session->peer_cert != NULL ) in ssl_clear_peer_cert()
2017 mbedtls_x509_crt_free( session->peer_cert ); in ssl_clear_peer_cert()
[all …]
Dssl_cli.c2876 if( ssl->session_negotiate->peer_cert == NULL ) in ssl_write_encrypted_pms()
2882 peer_pk = &ssl->session_negotiate->peer_cert->pk; in ssl_write_encrypted_pms()
3002 if( ssl->session_negotiate->peer_cert == NULL ) in ssl_get_ecdh_params_from_cert()
3008 peer_pk = &ssl->session_negotiate->peer_cert->pk; in ssl_get_ecdh_params_from_cert()
3383 if( ssl->session_negotiate->peer_cert == NULL ) in ssl_parse_server_key_exchange()
3389 peer_pk = &ssl->session_negotiate->peer_cert->pk; in ssl_parse_server_key_exchange()
Dssl_srv.c4423 if( ssl->session_negotiate->peer_cert == NULL ) in ssl_parse_certificate_verify()
4461 if( ssl->session_negotiate->peer_cert == NULL ) in ssl_parse_certificate_verify()
4466 peer_pk = &ssl->session_negotiate->peer_cert->pk; in ssl_parse_certificate_verify()
/openthread-2.7.6/third_party/mbedtls/repo/include/mbedtls/
Dssl_cache.h73 mbedtls_x509_buf peer_cert; /*!< entry peer_cert */ member
Dssl.h923 mbedtls_x509_crt *peer_cert; /*!< peer X.509 cert chain */ member
/openthread-2.7.6/src/core/meshcop/
Ddtls.cpp513 …Exit(mbedtls_base64_encode(aPeerCert, aCertBufferSize, aCertLength, mSsl.session->peer_cert->raw.p, in GetPeerCertificateBase64()
514 mSsl.session->peer_cert->raw.len) == 0, in GetPeerCertificateBase64()
/openthread-2.7.6/third_party/mbedtls/repo/tests/suites/
Dtest_suite_ssl.function1466 session->peer_cert = mbedtls_calloc( 1, sizeof( *session->peer_cert ) );
1467 if( session->peer_cert == NULL )
1469 *session->peer_cert = tmp_crt;
3897 TEST_ASSERT( ( original.peer_cert == NULL ) ==
3898 ( restored.peer_cert == NULL ) );
3899 if( original.peer_cert != NULL )
3901 TEST_ASSERT( original.peer_cert->raw.len ==
3902 restored.peer_cert->raw.len );
3903 TEST_ASSERT( memcmp( original.peer_cert->raw.p,
3904 restored.peer_cert->raw.p,
[all …]
/openthread-2.7.6/third_party/mbedtls/repo/
DChangeLog835 always return NULL, and removes the peer_cert field from the
3359 * The SSL session cache module (ssl_cache) now also retains peer_cert