Lines Matching refs:server_cert
227 X509* server_cert; member
1499 static CURLcode verifyhost(struct connectdata *conn, X509 *server_cert) in verifyhost() argument
1533 altnames = X509_get_ext_d2i(server_cert, NID_subject_alt_name, NULL, NULL); in verifyhost()
1619 X509_NAME *name = X509_get_subject_name(server_cert); in verifyhost()
2722 BACKEND->server_cert = 0x0; in ossl_connect_step1()
3339 BACKEND->server_cert = SSL_get_peer_certificate(BACKEND->handle); in servercert()
3340 if(!BACKEND->server_cert) { in servercert()
3351 rc = x509_name_oneline(X509_get_subject_name(BACKEND->server_cert), in servercert()
3358 ASN1_TIME_print(mem, X509_get0_notBefore(BACKEND->server_cert)); in servercert()
3363 ASN1_TIME_print(mem, X509_get0_notAfter(BACKEND->server_cert)); in servercert()
3373 result = verifyhost(conn, BACKEND->server_cert); in servercert()
3375 X509_free(BACKEND->server_cert); in servercert()
3376 BACKEND->server_cert = NULL; in servercert()
3381 rc = x509_name_oneline(X509_get_issuer_name(BACKEND->server_cert), in servercert()
3403 X509_free(BACKEND->server_cert); in servercert()
3404 BACKEND->server_cert = NULL; in servercert()
3413 X509_free(BACKEND->server_cert); in servercert()
3414 BACKEND->server_cert = NULL; in servercert()
3425 X509_free(BACKEND->server_cert); in servercert()
3426 BACKEND->server_cert = NULL; in servercert()
3430 if(X509_check_issued(issuer, BACKEND->server_cert) != X509_V_OK) { in servercert()
3436 X509_free(BACKEND->server_cert); in servercert()
3437 BACKEND->server_cert = NULL; in servercert()
3472 X509_free(BACKEND->server_cert); in servercert()
3473 BACKEND->server_cert = NULL; in servercert()
3486 result = pkp_pin_peer_pubkey(data, BACKEND->server_cert, ptr); in servercert()
3491 X509_free(BACKEND->server_cert); in servercert()
3492 BACKEND->server_cert = NULL; in servercert()