Lines Matching refs:pkeys
193 if (c->pkeys[i].x509 != NULL) in ssl_set_pkey()
196 pktmp = X509_get_pubkey(c->pkeys[i].x509); in ssl_set_pkey()
209 if (!X509_check_private_key(c->pkeys[i].x509,pkey)) in ssl_set_pkey()
211 X509_free(c->pkeys[i].x509); in ssl_set_pkey()
212 c->pkeys[i].x509 = NULL; in ssl_set_pkey()
217 if (c->pkeys[i].privatekey != NULL) in ssl_set_pkey()
218 EVP_PKEY_free(c->pkeys[i].privatekey); in ssl_set_pkey()
220 c->pkeys[i].privatekey=pkey; in ssl_set_pkey()
221 c->key= &(c->pkeys[i]); in ssl_set_pkey()
414 if (c->pkeys[i].privatekey != NULL) in ssl_set_cert()
416 EVP_PKEY_copy_parameters(pkey,c->pkeys[i].privatekey); in ssl_set_cert()
422 if ((c->pkeys[i].privatekey->type == EVP_PKEY_RSA) && in ssl_set_cert()
423 (RSA_flags(c->pkeys[i].privatekey->pkey.rsa) & in ssl_set_cert()
428 if (!X509_check_private_key(x,c->pkeys[i].privatekey)) in ssl_set_cert()
434 EVP_PKEY_free(c->pkeys[i].privatekey); in ssl_set_cert()
435 c->pkeys[i].privatekey=NULL; in ssl_set_cert()
443 if (c->pkeys[i].x509 != NULL) in ssl_set_cert()
444 X509_free(c->pkeys[i].x509); in ssl_set_cert()
446 c->pkeys[i].x509=x; in ssl_set_cert()
447 c->key= &(c->pkeys[i]); in ssl_set_cert()