Lines Matching refs:chain

7731                                        mbedtls_x509_crt *chain)  in ssl_parse_certificate_chain()  argument
7837 ret = mbedtls_x509_crt_parse_der(chain, ssl->in_msg + i, n); in ssl_parse_certificate_chain()
7841 ret = mbedtls_x509_crt_parse_der_nocopy(chain, ssl->in_msg + i, n); in ssl_parse_certificate_chain()
7869 MBEDTLS_SSL_DEBUG_CRT(3, "peer certificate", chain); in ssl_parse_certificate_chain()
7933 mbedtls_x509_crt *chain, in ssl_parse_certificate_verify() argument
7968 chain, in ssl_parse_certificate_verify()
7997 chain, in ssl_parse_certificate_verify()
8021 const mbedtls_pk_context *pk = &chain->pk; in ssl_parse_certificate_verify()
8048 if (mbedtls_ssl_check_cert_usage(chain, in ssl_parse_certificate_verify()
8184 mbedtls_x509_crt *chain = NULL; in mbedtls_ssl_parse_certificate() local
8197 chain = ssl->handshake->ecrs_peer_cert; in mbedtls_ssl_parse_certificate()
8226 chain = mbedtls_calloc(1, sizeof(mbedtls_x509_crt)); in mbedtls_ssl_parse_certificate()
8227 if (chain == NULL) { in mbedtls_ssl_parse_certificate()
8237 mbedtls_x509_crt_init(chain); in mbedtls_ssl_parse_certificate()
8239 ret = ssl_parse_certificate_chain(ssl, chain); in mbedtls_ssl_parse_certificate()
8256 chain, rs_ctx); in mbedtls_ssl_parse_certificate()
8271 crt_start = chain->raw.p; in mbedtls_ssl_parse_certificate()
8272 crt_len = chain->raw.len; in mbedtls_ssl_parse_certificate()
8274 pk_start = chain->pk_raw.p; in mbedtls_ssl_parse_certificate()
8275 pk_len = chain->pk_raw.len; in mbedtls_ssl_parse_certificate()
8279 mbedtls_x509_crt_free(chain); in mbedtls_ssl_parse_certificate()
8280 mbedtls_free(chain); in mbedtls_ssl_parse_certificate()
8281 chain = NULL; in mbedtls_ssl_parse_certificate()
8295 ssl->session_negotiate->peer_cert = chain; in mbedtls_ssl_parse_certificate()
8296 chain = NULL; in mbedtls_ssl_parse_certificate()
8309 ssl->handshake->ecrs_peer_cert = chain; in mbedtls_ssl_parse_certificate()
8310 chain = NULL; in mbedtls_ssl_parse_certificate()
8314 if (chain != NULL) { in mbedtls_ssl_parse_certificate()
8315 mbedtls_x509_crt_free(chain); in mbedtls_ssl_parse_certificate()
8316 mbedtls_free(chain); in mbedtls_ssl_parse_certificate()