Lines Matching refs:privatekey

145     EVP_PKEY_free(c->pkeys[i].privatekey);  in ssl_set_pkey()
147 c->pkeys[i].privatekey = pkey; in ssl_set_pkey()
276 if (c->pkeys[i].privatekey != NULL) { in ssl_set_cert()
282 EVP_PKEY_copy_parameters(pkey, c->pkeys[i].privatekey); in ssl_set_cert()
285 if (!X509_check_private_key(x, c->pkeys[i].privatekey)) { in ssl_set_cert()
291 EVP_PKEY_free(c->pkeys[i].privatekey); in ssl_set_cert()
292 c->pkeys[i].privatekey = NULL; 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
1004 if (privatekey == NULL) { in ssl_set_cert_and_key()
1005 privatekey = pubkey; in ssl_set_cert_and_key()
1008 if (EVP_PKEY_missing_parameters(privatekey)) { in ssl_set_cert_and_key()
1015 if (!EVP_PKEY_copy_parameters(privatekey, pubkey)) { in ssl_set_cert_and_key()
1022 if (!EVP_PKEY_copy_parameters(pubkey, privatekey)) { in ssl_set_cert_and_key()
1029 if (EVP_PKEY_eq(pubkey, privatekey) != 1) { in ssl_set_cert_and_key()
1040 || c->pkeys[i].privatekey != NULL in ssl_set_cert_and_key()
1062 EVP_PKEY_free(c->pkeys[i].privatekey); in ssl_set_cert_and_key()
1063 EVP_PKEY_up_ref(privatekey); in ssl_set_cert_and_key()
1064 c->pkeys[i].privatekey = privatekey; 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()