Lines Matching refs:chain

2313                                         mbedtls_x509_crt *chain )  in ssl_parse_certificate_chain()  argument
2423 ret = mbedtls_x509_crt_parse_der( chain, ssl->in_msg + i, n ); in ssl_parse_certificate_chain()
2427 ret = mbedtls_x509_crt_parse_der_nocopy( chain, ssl->in_msg + i, n ); in ssl_parse_certificate_chain()
2456 MBEDTLS_SSL_DEBUG_CRT( 3, "peer certificate", chain ); in ssl_parse_certificate_chain()
2541 mbedtls_x509_crt *chain, in ssl_parse_certificate_verify() argument
2579 chain, in ssl_parse_certificate_verify()
2610 chain, in ssl_parse_certificate_verify()
2634 const mbedtls_pk_context *pk = &chain->pk; in ssl_parse_certificate_verify()
2649 if( mbedtls_ssl_check_cert_usage( chain, in ssl_parse_certificate_verify()
2790 mbedtls_x509_crt *chain = NULL; in mbedtls_ssl_parse_certificate() local
2805 chain = ssl->handshake->ecrs_peer_cert; in mbedtls_ssl_parse_certificate()
2835 chain = mbedtls_calloc( 1, sizeof( mbedtls_x509_crt ) ); in mbedtls_ssl_parse_certificate()
2836 if( chain == NULL ) in mbedtls_ssl_parse_certificate()
2847 mbedtls_x509_crt_init( chain ); in mbedtls_ssl_parse_certificate()
2849 ret = ssl_parse_certificate_chain( ssl, chain ); in mbedtls_ssl_parse_certificate()
2863 chain, rs_ctx ); in mbedtls_ssl_parse_certificate()
2877 crt_start = chain->raw.p; in mbedtls_ssl_parse_certificate()
2878 crt_len = chain->raw.len; in mbedtls_ssl_parse_certificate()
2880 pk_start = chain->pk_raw.p; in mbedtls_ssl_parse_certificate()
2881 pk_len = chain->pk_raw.len; in mbedtls_ssl_parse_certificate()
2885 mbedtls_x509_crt_free( chain ); in mbedtls_ssl_parse_certificate()
2886 mbedtls_free( chain ); in mbedtls_ssl_parse_certificate()
2887 chain = NULL; in mbedtls_ssl_parse_certificate()
2899 ssl->session_negotiate->peer_cert = chain; in mbedtls_ssl_parse_certificate()
2900 chain = NULL; in mbedtls_ssl_parse_certificate()
2913 ssl->handshake->ecrs_peer_cert = chain; in mbedtls_ssl_parse_certificate()
2914 chain = NULL; in mbedtls_ssl_parse_certificate()
2918 if( chain != NULL ) in mbedtls_ssl_parse_certificate()
2920 mbedtls_x509_crt_free( chain ); in mbedtls_ssl_parse_certificate()
2921 mbedtls_free( chain ); in mbedtls_ssl_parse_certificate()