dev-perl/Crypt-OpenSSL-RSA: Drop old versions

Signed-off-by: Matt Turner <mattst88@gentoo.org>
This commit is contained in:
Matt Turner
2024-03-14 12:43:02 -04:00
parent 2ad9cffea2
commit e71ff77e4c
4 changed files with 0 additions and 179 deletions

View File

@@ -1,46 +0,0 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
DIST_AUTHOR=TODDR
DIST_VERSION=0.31
inherit perl-module
DESCRIPTION="RSA encoding and decoding using the OpenSSL libraries"
SLOT="0"
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~x64-macos"
IUSE="test"
RESTRICT="!test? ( test )"
RDEPEND="
dev-perl/Crypt-OpenSSL-Bignum
dev-perl/Crypt-OpenSSL-Random
dev-libs/openssl:0=
"
DEPEND="
dev-libs/openssl:0=
"
BDEPEND="${RDEPEND}
>=dev-perl/Crypt-OpenSSL-Guess-0.110.0
virtual/perl-ExtUtils-MakeMaker
test? (
virtual/perl-Test
)
"
PERL_RM_FILES=(
t/z_kwalitee.t
t/z_perl_minimum_version.t
t/z_meta.t
t/z_pod-coverage.t
t/z_pod.t
)
mydoc="rfc*.txt"
src_compile() {
mymake=(
"OPTIMIZE=${CFLAGS}"
)
perl-module_src_compile
}

View File

@@ -1,42 +0,0 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DIST_AUTHOR=TODDR
DIST_VERSION=0.32
inherit perl-module
DESCRIPTION="RSA encoding and decoding using the OpenSSL libraries"
SLOT="0"
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~x64-macos"
RDEPEND="
dev-perl/Crypt-OpenSSL-Bignum
dev-perl/Crypt-OpenSSL-Random
dev-libs/openssl:0=
"
DEPEND="
dev-libs/openssl:0=
"
BDEPEND="${RDEPEND}
>=dev-perl/Crypt-OpenSSL-Guess-0.110.0
virtual/perl-ExtUtils-MakeMaker
test? (
virtual/perl-Test
)
"
PATCHES=(
"${FILESDIR}/${P}-openssl-3.0.0.patch"
)
PERL_RM_FILES=(
t/z_kwalitee.t
t/z_perl_minimum_version.t
t/z_meta.t
t/z_pod-coverage.t
t/z_pod.t
)
mydoc="rfc*.txt"

View File

@@ -1,3 +1 @@
DIST Crypt-OpenSSL-RSA-0.31.tar.gz 25856 BLAKE2B 172d48cd6cc0f3df2c1c1684897d8ee376663cb366a1e28c13e4af603b2b985d542f83284112be5e4717a3a13a512926b4413b5a8f08f7ed613cd9929683cce9 SHA512 e00d25fc1d39253ea2d7d6ee478403d2b38bd9125602baf5815672fb9e81674ff58bbb47539e425526db1988ebc1a40837372cf42ffd466cb532efa2e450ccab
DIST Crypt-OpenSSL-RSA-0.32.tar.gz 24805 BLAKE2B 419b6a2e778fa10a6d68a6932d0b816f1c8ea4db0cd283efef4a4e684ea3468bd1133ce8825b388d1e3a4b4a990253aa44af892e4f89d71b46917f0cd7cb1fbb SHA512 2972611a8fa4e9c44fd09c9e7fa32f0abd377230f14dcdfa99edab87bba2199c6a0cab4d1e08bdf3057959c0efd3343eb989e46f4befd572b15540e59f1e3c64
DIST Crypt-OpenSSL-RSA-0.33.tar.gz 29010 BLAKE2B 4a25d93a351b51fcab3df75a14aedf9b039cc5f5692c2e7fb32c616da25a83917619683dbbc0d4f8c38cfa80e73b5af138c91a24a72be8830c37df06bcba539c SHA512 7bfa802ec41925ec9fa6937c5eea0d21f6f554a1d1d57ed679ed03b260cf08c0a397df11880de6d67abacfd843ad2c4f28b20ac58d80e183c2a83c91deb926bf

View File

@@ -1,89 +0,0 @@
Source:
https://gitlab.com/redhat/centos-stream/rpms/perl-Crypt-OpenSSL-RSA/-/blob/c9s/perl-Crypt-OpenSSL-RSA-openssl30.patch
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<Crypt::OpenSSL::RSA>.
-=item use_sslv23_padding
-
-Use C<PKCS #1 v1.5> 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*