Skip to content

Commit 25fec76

Browse files
committed
Pass NULL to EVP_PKEY_CTX_new_from_pkey not a random var value
1 parent 4d54dfa commit 25fec76

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

RSA.xs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -324,9 +324,8 @@ SV* rsa_crypt(rsaData* p_rsa, SV* p_from,
324324
EVP_PKEY_CTX *ctx;
325325

326326
OSSL_LIB_CTX *ossllibctx = OSSL_LIB_CTX_new();
327-
const char* propquery;
328327
if (public) {
329-
ctx = EVP_PKEY_CTX_new_from_pkey(ossllibctx, (EVP_PKEY* )p_rsa->rsa, propquery);
328+
ctx = EVP_PKEY_CTX_new_from_pkey(ossllibctx, (EVP_PKEY* )p_rsa->rsa, NULL);
330329
} else {
331330
ctx = EVP_PKEY_CTX_new((EVP_PKEY* )p_rsa->rsa, NULL);
332331
}

0 commit comments

Comments
 (0)