Lines Matching refs:privatekey
144 EVP_PKEY_free(c->privatekey); in ssl_set_pkey()
145 c->privatekey = EVP_PKEY_up_ref(pkey); in ssl_set_pkey()
216 if (c->privatekey != NULL) { in ssl_set_cert()
219 if (!EVP_PKEY_is_opaque(c->privatekey) && in ssl_set_cert()
220 !X509_check_private_key(x, c->privatekey)) { in ssl_set_cert()
224 EVP_PKEY_free(c->privatekey); in ssl_set_cert()
225 c->privatekey = NULL; in ssl_set_cert()
345 return ssl->cert->privatekey != NULL || ssl->cert->key_method != NULL; in ssl_has_private_key()
352 return EVP_PKEY_id(ssl->cert->privatekey); in ssl_private_key_type()
359 return EVP_PKEY_size(ssl->cert->privatekey); in ssl_private_key_max_signature_len()
371 EVP_PKEY_CTX *ctx = EVP_PKEY_CTX_new(ssl->cert->privatekey, NULL); in ssl_private_key_sign()
404 RSA *rsa = EVP_PKEY_get0_RSA(ssl->cert->privatekey); in ssl_private_key_decrypt()