mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2025-12-14 14:25:53 +01:00
libcrypt-openssl-rsa-perl: Fix build with openssl3+
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
parent
be77bddae1
commit
948ee7c2e9
|
|
@ -0,0 +1,37 @@
|
|||
From 5e8202458e41ba1f7801746c503fe7c60ae340d5 Mon Sep 17 00:00:00 2001
|
||||
From: kambe-mikb <77083885+kambe-mikb@users.noreply.github.com>
|
||||
Date: Tue, 28 Sep 2021 17:40:18 +1000
|
||||
Subject: [PATCH] Fix for Issue 31
|
||||
|
||||
Fix Issue 31 by removing reference to RSA_SSLV23_PADDING (removed from OpenSSL starting from v3.0.0)
|
||||
|
||||
Upstream-Status: Submitted [https://github.com/toddr/Crypt-OpenSSL-RSA/pull/32]
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
RSA.xs | 4 ++++
|
||||
1 file changed, 4 insertions(+)
|
||||
|
||||
diff --git a/RSA.xs b/RSA.xs
|
||||
index 46cb199..4f65dfc 100644
|
||||
--- a/RSA.xs
|
||||
+++ b/RSA.xs
|
||||
@@ -640,12 +640,16 @@ use_pkcs1_oaep_padding(p_rsa)
|
||||
CODE:
|
||||
p_rsa->padding = RSA_PKCS1_OAEP_PADDING;
|
||||
|
||||
+#if OPENSSL_VERSION_NUMBER < 0x30000000L
|
||||
+
|
||||
void
|
||||
use_sslv23_padding(p_rsa)
|
||||
rsaData* p_rsa;
|
||||
CODE:
|
||||
p_rsa->padding = RSA_SSLV23_PADDING;
|
||||
|
||||
+#endif
|
||||
+
|
||||
# Sign text. Returns the signature.
|
||||
|
||||
SV*
|
||||
--
|
||||
2.33.1
|
||||
|
||||
|
|
@ -3,7 +3,9 @@ SECTION = "libs"
|
|||
LICENSE = "Artistic-1.0 | GPL-1.0+"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=a67ceecc5d9a91a5a0d003ba50c26346"
|
||||
|
||||
SRC_URI = "http://www.cpan.org/modules/by-module/Crypt/Crypt-OpenSSL-RSA-${PV}.tar.gz "
|
||||
SRC_URI = "http://www.cpan.org/modules/by-module/Crypt/Crypt-OpenSSL-RSA-${PV}.tar.gz \
|
||||
file://0001-Fix-for-Issue-31.patch \
|
||||
"
|
||||
|
||||
SRC_URI[sha256sum] = "adc74f0ae125c77f65d5dd32abb9c3429300a79543bf263494f333f9c0b62a61"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user