From 666db05d5b72c3de0da07b5b46da93996f295534 Mon Sep 17 00:00:00 2001 From: Timothy Legge Date: Thu, 8 May 2025 08:20:28 -0300 Subject: [PATCH] Fix old openssl on strawberry does not include whrlpool.h --- Changes | 2 ++ RSA.xs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Changes b/Changes index 38882d6..a69f8fa 100644 --- a/Changes +++ b/Changes @@ -1,5 +1,7 @@ Revision history for Perl extension Crypt::OpenSSL::RSA. + - Fix old openssl on strawberry does not include whrlpool.h + 0.35 May 7 2025 - Disable PKCS#1 v1.5 padding. It's not practical to mitigate marvin attacks so we will instead disable this and require alternatives to address the issue. - Resolves #42 - CVE-2024-2467. diff --git a/RSA.xs b/RSA.xs index 775ae3e..066ee00 100644 --- a/RSA.xs +++ b/RSA.xs @@ -10,7 +10,7 @@ #include #include #include -#if OPENSSL_VERSION_NUMBER < 0x30000000 +#if OPENSSL_VERSION_NUMBER >= 0x10000000 & OPENSSL_VERSION_NUMBER < 0x30000000 #include #endif #include