From 7c891a8904f7fbd87d0fb1a02ff754a0156101fd Mon Sep 17 00:00:00 2001 From: ocs-bot Date: Wed, 3 Jan 2024 15:15:41 +0800 Subject: [PATCH] Upgrade to version 0.33 --- Crypt-OpenSSL-RSA-0.32-Fix-for-Issue-31.patch | 61 ------------------- perl-Crypt-OpenSSL-RSA.spec | 8 ++- sources | 2 +- 3 files changed, 6 insertions(+), 65 deletions(-) delete mode 100644 Crypt-OpenSSL-RSA-0.32-Fix-for-Issue-31.patch diff --git a/Crypt-OpenSSL-RSA-0.32-Fix-for-Issue-31.patch b/Crypt-OpenSSL-RSA-0.32-Fix-for-Issue-31.patch deleted file mode 100644 index 59fc3da..0000000 --- a/Crypt-OpenSSL-RSA-0.32-Fix-for-Issue-31.patch +++ /dev/null @@ -1,61 +0,0 @@ -From 32b250eab5e7847d3186ed1a61146dd01eb8f3c0 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 -MIME-Version: 1.0 -Content-Type: text/plain; charset=UTF-8 -Content-Transfer-Encoding: 8bit - -Fix Issue 31 by removing reference to RSA_SSLV23_PADDING (removed from OpenSSL starting from v3.0.0) - -Signed-off-by: Petr Písař ---- - RSA.pm | 3 ++- - RSA.xs | 4 ++++ - 2 files changed, 6 insertions(+), 1 deletion(-) - -diff --git a/RSA.pm b/RSA.pm -index 3e74925..afd27fd 100644 ---- a/RSA.pm -+++ b/RSA.pm -@@ -37,7 +37,6 @@ Crypt::OpenSSL::RSA - RSA encoding and decoding, using the openSSL libraries - Crypt::OpenSSL::Random::random_seed($good_entropy); - Crypt::OpenSSL::RSA->import_random_seed(); - $rsa_pub = Crypt::OpenSSL::RSA->new_public_key($key_string); -- $rsa_pub->use_sslv23_padding(); # use_pkcs1_oaep_padding is the default - $ciphertext = $rsa->encrypt($plaintext); - - $rsa_priv = Crypt::OpenSSL::RSA->new_private_key($key_string); -@@ -228,6 +227,8 @@ C. - Use C padding with an SSL-specific modification that - denotes that the server is SSL3 capable. - -+Not available since OpenSSL 3. -+ - =item use_md5_hash - - Use the RFC 1321 MD5 hashing algorithm by Ron Rivest when signing and -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.31.1 - diff --git a/perl-Crypt-OpenSSL-RSA.spec b/perl-Crypt-OpenSSL-RSA.spec index b332da7..6b514f3 100644 --- a/perl-Crypt-OpenSSL-RSA.spec +++ b/perl-Crypt-OpenSSL-RSA.spec @@ -1,11 +1,10 @@ Summary: Perl interface to OpenSSL for RSA Name: perl-Crypt-OpenSSL-RSA -Version: 0.32 -Release: 4%{?dist} +Version: 0.33 +Release: 1%{?dist} License: GPL+ or Artistic URL: https://metacpan.org/release/Crypt-OpenSSL-RSA Source0: https://cpan.metacpan.org/authors/id/T/TO/TODDR/Crypt-OpenSSL-RSA-%{version}.tar.gz -Patch3000: Crypt-OpenSSL-RSA-0.32-Fix-for-Issue-31.patch BuildRequires: perl(Test) perl(Test::More) BuildRequires: perl(Carp) perl(Crypt::OpenSSL::Bignum) perl(Crypt::OpenSSL::Random) perl(XSLoader) perl(base) @@ -43,6 +42,9 @@ make test %{_mandir}/man3/* %changelog +* Wed Jan 03 2024 Upgrade Robot - 0.33-1 +- Upgrade to version 0.33 + * Fri Sep 08 2023 OpenCloudOS Release Engineering - 0.32-4 - Rebuilt for OpenCloudOS Stream 23.09 diff --git a/sources b/sources index 2ef2900..1ad37c1 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (Crypt-OpenSSL-RSA-0.32.tar.gz) = 2972611a8fa4e9c44fd09c9e7fa32f0abd377230f14dcdfa99edab87bba2199c6a0cab4d1e08bdf3057959c0efd3343eb989e46f4befd572b15540e59f1e3c64 +SHA512 (Crypt-OpenSSL-RSA-0.33.tar.gz) = 7bfa802ec41925ec9fa6937c5eea0d21f6f554a1d1d57ed679ed03b260cf08c0a397df11880de6d67abacfd843ad2c4f28b20ac58d80e183c2a83c91deb926bf -- Gitee