diff --git a/.gitignore b/.gitignore index 211510d..7c15592 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -SOURCES/Crypt-OpenSSL-RSA-0.31.tar.gz +SOURCES/Crypt-OpenSSL-RSA-0.33.tar.gz diff --git a/.perl-Crypt-OpenSSL-RSA.metadata b/.perl-Crypt-OpenSSL-RSA.metadata index 51b4495..40fe7ca 100644 --- a/.perl-Crypt-OpenSSL-RSA.metadata +++ b/.perl-Crypt-OpenSSL-RSA.metadata @@ -1 +1 @@ -5028d060a546a4e1334b60d2fefd21cdd116afb1 SOURCES/Crypt-OpenSSL-RSA-0.31.tar.gz +eb32f6103c71a1e1ef47ede383d6093bc1f9abf9 SOURCES/Crypt-OpenSSL-RSA-0.33.tar.gz diff --git a/SOURCES/perl-Crypt-OpenSSL-RSA-openssl30.patch b/SOURCES/perl-Crypt-OpenSSL-RSA-openssl30.patch deleted file mode 100644 index 2be5804..0000000 --- a/SOURCES/perl-Crypt-OpenSSL-RSA-openssl30.patch +++ /dev/null @@ -1,84 +0,0 @@ -diff --git a/README b/README -index c7d4bb7..3da6d1d 100644 ---- a/README -+++ b/README -@@ -10,7 +10,6 @@ SYNOPSIS - 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); -@@ -140,10 +139,6 @@ Instance Methods - all new applications. It is the default mode used by - "Crypt::OpenSSL::RSA". - -- use_sslv23_padding -- Use PKCS #1 v1.5 padding with an SSL-specific modification that -- denotes that the server is SSL3 capable. -- - use_md5_hash - Use the RFC 1321 MD5 hashing algorithm by Ron Rivest when signing - and verifying messages. -@@ -168,7 +163,7 @@ Instance Methods - pkcs1_oaep_padding - at most 42 bytes less than this size. - -- pkcs1_padding or sslv23_padding -+ pkcs1_padding - at most 11 bytes less than this size. - - no_padding -diff --git a/RSA.pm b/RSA.pm -index 31e6949..1b63e99 100644 ---- a/RSA.pm -+++ b/RSA.pm -@@ -34,8 +34,7 @@ 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); -+ $ciphertext = $rsa->encrypt($plaintext); - - $rsa_priv = Crypt::OpenSSL::RSA->new_private_key($key_string); - $plaintext = $rsa->encrypt($ciphertext); -@@ -220,11 +219,6 @@ an empty encoding parameter. This mode of padding is recommended for - all new applications. It is the default mode used by - C. - --=item use_sslv23_padding -- --Use C padding with an SSL-specific modification that --denotes that the server is SSL3 capable. -- - =item use_md5_hash - - Use the RFC 1321 MD5 hashing algorithm by Ron Rivest when signing and -@@ -267,7 +261,7 @@ the text to be encrypted should be: - - at most 42 bytes less than this size. - --=item pkcs1_padding or sslv23_padding -+=item pkcs1_padding - - at most 11 bytes less than this size. - -diff --git a/RSA.xs b/RSA.xs -index d474d11..711e4e7 100644 ---- a/RSA.xs -+++ b/RSA.xs -@@ -640,12 +640,6 @@ use_pkcs1_oaep_padding(p_rsa) - CODE: - p_rsa->padding = RSA_PKCS1_OAEP_PADDING; - --void --use_sslv23_padding(p_rsa) -- rsaData* p_rsa; -- CODE: -- p_rsa->padding = RSA_SSLV23_PADDING; -- - # Sign text. Returns the signature. - - SV* diff --git a/SPECS/perl-Crypt-OpenSSL-RSA.spec b/SPECS/perl-Crypt-OpenSSL-RSA.spec index cc11146..a6e8552 100644 --- a/SPECS/perl-Crypt-OpenSSL-RSA.spec +++ b/SPECS/perl-Crypt-OpenSSL-RSA.spec @@ -1,13 +1,14 @@ Name: perl-Crypt-OpenSSL-RSA -Version: 0.31 -Release: 13%{?dist} +Version: 0.33 +Release: 7%{?dist} Summary: Perl interface to OpenSSL for RSA -License: GPL+ or Artistic +License: GPL-1.0-or-later OR Artistic-1.0-Perl URL: https://metacpan.org/release/Crypt-OpenSSL-RSA Source0: https://cpan.metacpan.org/authors/id/T/TO/TODDR/Crypt-OpenSSL-RSA-%{version}.tar.gz BuildRequires: gcc BuildRequires: findutils BuildRequires: make +BuildRequires: openssl BuildRequires: openssl-devel BuildRequires: perl-devel BuildRequires: perl-generators @@ -28,13 +29,9 @@ BuildRequires: perl(base) BuildRequires: perl(Test) BuildRequires: perl(Test::More) -Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) Requires: perl(Crypt::OpenSSL::Random) Requires: perl(Crypt::OpenSSL::Bignum) -Patch1: perl-Crypt-OpenSSL-RSA-openssl30.patch - - %description Crypt::OpenSSL::RSA - RSA encoding and decoding, using the openSSL libraries @@ -42,11 +39,11 @@ Crypt::OpenSSL::RSA - RSA encoding and decoding, using the openSSL libraries %autosetup -p1 -n Crypt-OpenSSL-RSA-%{version} %build -%{__perl} Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 -%make_build +perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 +%{make_build} %install -make pure_install DESTDIR=%{buildroot} +%{make_install} find %{buildroot} -type f -name '*.bs' -size 0 -delete %{_fixperms} %{buildroot}/* @@ -61,19 +58,57 @@ make test %{_mandir}/man3/* %changelog -* Mon Aug 09 2021 Mohan Boddu - 0.31-13 -- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags - Related: rhbz#1991688 +* Sat Jan 04 2025 Arkady L. Shane - 0.33-7 +- Rebuilt for MSVSphere 10 + +* Thu Jul 18 2024 Fedora Release Engineering - 0.33-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Mon Jun 10 2024 Jitka Plesnikova - 0.33-6 +- Perl 5.40 rebuild + +* Thu Jan 25 2024 Fedora Release Engineering - 0.33-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Sun Jan 21 2024 Fedora Release Engineering - 0.33-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Thu Jul 20 2023 Fedora Release Engineering - 0.33-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Tue Jul 11 2023 Jitka Plesnikova - 0.33-2 +- Perl 5.38 rebuild + +* Wed Jun 07 2023 Jitka Plesnikova - 0.33-1 +- 0.33 bump +- Update license to SPDX format + +* Fri Jan 20 2023 Fedora Release Engineering - 0.32-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Fri Jul 22 2022 Fedora Release Engineering - 0.32-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Tue May 31 2022 Jitka Plesnikova - 0.32-5 +- Perl 5.36 rebuild + +* Fri Jan 21 2022 Fedora Release Engineering - 0.32-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Fri Nov 26 2021 Petr Pisar - 0.32-3 +- Adapt to OpenSSL 3 (bug #2005979) + +* Tue Sep 14 2021 Sahana Prasad - 0.32-2 +- Rebuilt with OpenSSL 3.0.0 -* Wed Jun 16 2021 Mohan Boddu - 0.31-12 -- Rebuilt for RHEL 9 BETA for openssl 3.0 - Related: rhbz#1971065 +* Thu Sep 9 2021 Wes Hardaker - 0.32-1 +- version bump to upstream -* Tue May 18 2021 Pavel Zhukov - 0.31-11 -- Build with openssl 3.0 +* Thu Jul 22 2021 Fedora Release Engineering - 0.31-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild -* Fri Apr 16 2021 Mohan Boddu - 0.31-10 -- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937 +* Fri May 21 2021 Jitka Plesnikova - 0.31-10 +- Perl 5.34 rebuild * Wed Jan 27 2021 Fedora Release Engineering - 0.31-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild