Subject: [PATCH] Pass NULL to EVP_PKEY_CTX_new_from_pkey not a random var value

From: Todd Rinaldo <[email-masked]>
Date: Sun, 4 May 2025 14:11:57 +0000

---
 RSA.xs | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/RSA.xs b/RSA.xs
index a3f2ea9..d60804b 100644
--- a/RSA.xs
+++ b/RSA.xs
@@ -324,9 +324,8 @@ SV* rsa_crypt(rsaData* p_rsa, SV* p_from,
     EVP_PKEY_CTX *ctx;
 
     OSSL_LIB_CTX *ossllibctx = OSSL_LIB_CTX_new();
-    const char* propquery;
     if (public) {
-        ctx = EVP_PKEY_CTX_new_from_pkey(ossllibctx, (EVP_PKEY* )p_rsa->rsa, propquery);
+        ctx = EVP_PKEY_CTX_new_from_pkey(ossllibctx, (EVP_PKEY* )p_rsa->rsa, NULL);
     } else {
         ctx = EVP_PKEY_CTX_new((EVP_PKEY* )p_rsa->rsa, NULL);
     }
-- 
2.49.0