Lines Matching refs:x509
20 static int ssl_set_cert(CERT *c, X509 *x509);
127 if (c->pkeys[i].x509 != NULL in ssl_set_pkey()
128 && !X509_check_private_key(c->pkeys[i].x509, pkey)) in ssl_set_pkey()
269 X509_free(c->pkeys[i].x509); in ssl_set_cert()
271 c->pkeys[i].x509 = x; in ssl_set_cert()
923 static int ssl_set_cert_and_key(SSL *ssl, SSL_CTX *ctx, X509 *x509, EVP_PKEY *privatekey, in ssl_set_cert_and_key() argument
935 rv = ssl_security_cert(ssl, ctx, x509, 0, 1); in ssl_set_cert_and_key()
948 pubkey = X509_get_pubkey(x509); /* bumps reference */ in ssl_set_cert_and_key()
986 if (!override && (c->pkeys[i].x509 != NULL in ssl_set_cert_and_key()
1005 X509_free(c->pkeys[i].x509); in ssl_set_cert_and_key()
1006 X509_up_ref(x509); in ssl_set_cert_and_key()
1007 c->pkeys[i].x509 = x509; in ssl_set_cert_and_key()
1021 int SSL_use_cert_and_key(SSL *ssl, X509 *x509, EVP_PKEY *privatekey, in SSL_use_cert_and_key() argument
1024 return ssl_set_cert_and_key(ssl, NULL, x509, privatekey, chain, override); in SSL_use_cert_and_key()
1027 int SSL_CTX_use_cert_and_key(SSL_CTX *ctx, X509 *x509, EVP_PKEY *privatekey, in SSL_CTX_use_cert_and_key() argument
1030 return ssl_set_cert_and_key(NULL, ctx, x509, privatekey, chain, override); in SSL_CTX_use_cert_and_key()