Home
last modified time | relevance | path

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

/net-tools-3.6.0/mbedtls-2.4.0/library/
Dssl_cache.c103 if( entry->peer_cert.p != NULL ) in mbedtls_ssl_cache_get()
105 if( ( session->peer_cert = mbedtls_calloc( 1, in mbedtls_ssl_cache_get()
112 mbedtls_x509_crt_init( session->peer_cert ); in mbedtls_ssl_cache_get()
113 if( mbedtls_x509_crt_parse( session->peer_cert, entry->peer_cert.p, in mbedtls_ssl_cache_get()
114 entry->peer_cert.len ) != 0 ) in mbedtls_ssl_cache_get()
116 mbedtls_free( session->peer_cert ); in mbedtls_ssl_cache_get()
117 session->peer_cert = NULL; in mbedtls_ssl_cache_get()
248 if( cur->peer_cert.p != NULL ) in mbedtls_ssl_cache_set()
250 mbedtls_free( cur->peer_cert.p ); in mbedtls_ssl_cache_set()
251 memset( &cur->peer_cert, 0, sizeof(mbedtls_x509_buf) ); in mbedtls_ssl_cache_set()
[all …]
Dssl_ticket.c187 if( session->peer_cert == NULL ) in ssl_save_session()
190 cert_len = session->peer_cert->raw.len; in ssl_save_session()
199 if( session->peer_cert != NULL ) in ssl_save_session()
200 memcpy( p, session->peer_cert->raw.p, cert_len ); in ssl_save_session()
237 session->peer_cert = NULL; in ssl_load_session()
246 session->peer_cert = mbedtls_calloc( 1, sizeof( mbedtls_x509_crt ) ); in ssl_load_session()
248 if( session->peer_cert == NULL ) in ssl_load_session()
251 mbedtls_x509_crt_init( session->peer_cert ); in ssl_load_session()
253 if( ( ret = mbedtls_x509_crt_parse_der( session->peer_cert, in ssl_load_session()
256 mbedtls_x509_crt_free( session->peer_cert ); in ssl_load_session()
[all …]
Dssl_tls.c165 if( src->peer_cert != NULL ) in ssl_session_copy()
169 dst->peer_cert = mbedtls_calloc( 1, sizeof(mbedtls_x509_crt) ); in ssl_session_copy()
170 if( dst->peer_cert == NULL ) in ssl_session_copy()
173 mbedtls_x509_crt_init( dst->peer_cert ); in ssl_session_copy()
175 if( ( ret = mbedtls_x509_crt_parse_der( dst->peer_cert, src->peer_cert->raw.p, in ssl_session_copy()
176 src->peer_cert->raw.len ) ) != 0 ) in ssl_session_copy()
178 mbedtls_free( dst->peer_cert ); in ssl_session_copy()
179 dst->peer_cert = NULL; in ssl_session_copy()
4342 if( ssl->session_negotiate->peer_cert != NULL ) in mbedtls_ssl_parse_certificate()
4344 mbedtls_x509_crt_free( ssl->session_negotiate->peer_cert ); in mbedtls_ssl_parse_certificate()
[all …]
Dssl_cli.c2047 if( ssl->session_negotiate->peer_cert == NULL )
2056 if( ! mbedtls_pk_can_do( &ssl->session_negotiate->peer_cert->pk,
2063 if( ( ret = mbedtls_pk_encrypt( &ssl->session_negotiate->peer_cert->pk,
2159 if( ssl->session_negotiate->peer_cert == NULL )
2165 if( ! mbedtls_pk_can_do( &ssl->session_negotiate->peer_cert->pk,
2172 peer_key = mbedtls_pk_ec( ssl->session_negotiate->peer_cert->pk );
2487 if( ssl->session_negotiate->peer_cert == NULL )
2496 if( ! mbedtls_pk_can_do( &ssl->session_negotiate->peer_cert->pk, pk_alg ) )
2502 if( ( ret = mbedtls_pk_verify( &ssl->session_negotiate->peer_cert->pk,
Dssl_srv.c3573 ssl->session_negotiate->peer_cert == NULL )
3625 if( mbedtls_pk_can_do( &ssl->session_negotiate->peer_cert->pk,
3681 if( ! mbedtls_pk_can_do( &ssl->session_negotiate->peer_cert->pk, pk_alg ) )
3714 if( ( ret = mbedtls_pk_verify( &ssl->session_negotiate->peer_cert->pk,
/net-tools-3.6.0/mbedtls-2.4.0/include/mbedtls/
Dssl_cache.h67 mbedtls_x509_buf peer_cert; /*!< entry peer_cert */ member
Dssl.h556 mbedtls_x509_crt *peer_cert; /*!< peer X.509 cert chain */ member
/net-tools-3.6.0/mbedtls-2.4.0/programs/x509/
Dcert_app.c455 ssl.session->peer_cert ); in main()
/net-tools-3.6.0/mbedtls-2.4.0/
DChangeLog1354 * The SSL session cache module (ssl_cache) now also retains peer_cert