Lines Matching refs:pkey
19 EVP_PKEY *pkey; in SSL_use_RSAPrivateKey() local
26 if ((pkey = EVP_PKEY_new()) == NULL) { in SSL_use_RSAPrivateKey()
32 EVP_PKEY_free(pkey); in SSL_use_RSAPrivateKey()
36 if (EVP_PKEY_assign_RSA(pkey, rsa) <= 0) { in SSL_use_RSAPrivateKey()
38 EVP_PKEY_free(pkey); in SSL_use_RSAPrivateKey()
42 ret = SSL_use_PrivateKey(ssl, pkey); in SSL_use_RSAPrivateKey()
43 EVP_PKEY_free(pkey); in SSL_use_RSAPrivateKey()
111 EVP_PKEY *pkey; in SSL_CTX_use_RSAPrivateKey() local
117 if ((pkey = EVP_PKEY_new()) == NULL) { in SSL_CTX_use_RSAPrivateKey()
123 EVP_PKEY_free(pkey); in SSL_CTX_use_RSAPrivateKey()
127 if (EVP_PKEY_assign_RSA(pkey, rsa) <= 0) { in SSL_CTX_use_RSAPrivateKey()
129 EVP_PKEY_free(pkey); in SSL_CTX_use_RSAPrivateKey()
133 ret = SSL_CTX_use_PrivateKey(ctx, pkey); in SSL_CTX_use_RSAPrivateKey()
134 EVP_PKEY_free(pkey); in SSL_CTX_use_RSAPrivateKey()