Lines Matching refs:server_cert
2104 struct ssl_peer *peer, X509 *server_cert) in ossl_verifyhost() argument
2147 altnames = X509_get_ext_d2i(server_cert, NID_subject_alt_name, NULL, NULL); in ossl_verifyhost()
2241 X509_NAME *name = X509_get_subject_name(server_cert); in ossl_verifyhost()
3834 octx->server_cert = 0x0; in Curl_ossl_ctx_init()
4554 octx->server_cert = SSL_get1_peer_certificate(octx->ssl);
4555 if(!octx->server_cert) {
4567 result = x509_name_oneline(X509_get_subject_name(octx->server_cert),
4574 ASN1_TIME_print(mem, X509_get0_notBefore(octx->server_cert));
4579 ASN1_TIME_print(mem, X509_get0_notAfter(octx->server_cert));
4589 result = ossl_verifyhost(data, conn, peer, octx->server_cert);
4591 X509_free(octx->server_cert);
4592 octx->server_cert = NULL;
4598 result = x509_name_oneline(X509_get_issuer_name(octx->server_cert),
4623 X509_free(octx->server_cert);
4624 octx->server_cert = NULL;
4636 X509_free(octx->server_cert);
4637 octx->server_cert = NULL;
4646 X509_free(octx->server_cert);
4647 octx->server_cert = NULL;
4659 X509_free(octx->server_cert);
4660 octx->server_cert = NULL;
4664 if(X509_check_issued(issuer, octx->server_cert) != X509_V_OK) {
4670 X509_free(octx->server_cert);
4671 octx->server_cert = NULL;
4723 X509_free(octx->server_cert);
4724 octx->server_cert = NULL;
4742 result = ossl_pkp_pin_peer_pubkey(data, octx->server_cert, ptr);
4747 X509_free(octx->server_cert);
4748 octx->server_cert = NULL;