Lines Matching refs:x509
20 static int ssl_set_cert(CERT *c, X509 *x509, SSL_CTX *ctx);
141 if (c->pkeys[i].x509 != NULL in ssl_set_pkey()
142 && !X509_check_private_key(c->pkeys[i].x509, pkey)) in ssl_set_pkey()
298 X509_free(c->pkeys[i].x509); in ssl_set_cert()
300 c->pkeys[i].x509 = x; in ssl_set_cert()
970 static int ssl_set_cert_and_key(SSL *ssl, SSL_CTX *ctx, X509 *x509, EVP_PKEY *privatekey, in ssl_set_cert_and_key() argument
988 rv = ssl_security_cert(sc, ctx, x509, 0, 1); in ssl_set_cert_and_key()
1001 pubkey = X509_get_pubkey(x509); /* bumps reference */ in ssl_set_cert_and_key()
1039 if (!override && (c->pkeys[i].x509 != NULL in ssl_set_cert_and_key()
1058 X509_free(c->pkeys[i].x509); in ssl_set_cert_and_key()
1059 X509_up_ref(x509); in ssl_set_cert_and_key()
1060 c->pkeys[i].x509 = x509; in ssl_set_cert_and_key()
1074 int SSL_use_cert_and_key(SSL *ssl, X509 *x509, EVP_PKEY *privatekey, in SSL_use_cert_and_key() argument
1077 return ssl_set_cert_and_key(ssl, NULL, x509, privatekey, chain, override); in SSL_use_cert_and_key()
1080 int SSL_CTX_use_cert_and_key(SSL_CTX *ctx, X509 *x509, EVP_PKEY *privatekey, in SSL_CTX_use_cert_and_key() argument
1083 return ssl_set_cert_and_key(NULL, ctx, x509, privatekey, chain, override); in SSL_CTX_use_cert_and_key()