Searched refs:peer_cert (Results 1 – 9 of 9) sorted by relevance
/net-tools-3.6.0/mbedtls-2.4.0/library/ |
D | ssl_cache.c | 103 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 …]
|
D | ssl_ticket.c | 187 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 …]
|
D | ssl_tls.c | 165 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 …]
|
D | ssl_cli.c | 2047 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,
|
D | ssl_srv.c | 3573 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/ |
D | ssl_cache.h | 67 mbedtls_x509_buf peer_cert; /*!< entry peer_cert */ member
|
D | ssl.h | 556 mbedtls_x509_crt *peer_cert; /*!< peer X.509 cert chain */ member
|
/net-tools-3.6.0/mbedtls-2.4.0/programs/x509/ |
D | cert_app.c | 455 ssl.session->peer_cert ); in main()
|
/net-tools-3.6.0/mbedtls-2.4.0/ |
D | ChangeLog | 1354 * The SSL session cache module (ssl_cache) now also retains peer_cert
|