Blame SOURCES/perl-Crypt-OpenSSL-RSA-openssl30.patch

2880d4
diff --git a/README b/README
2880d4
index c7d4bb7..3da6d1d 100644
2880d4
--- a/README
2880d4
+++ b/README
2880d4
@@ -10,7 +10,6 @@ SYNOPSIS
2880d4
       Crypt::OpenSSL::Random::random_seed($good_entropy);
2880d4
       Crypt::OpenSSL::RSA->import_random_seed();
2880d4
       $rsa_pub = Crypt::OpenSSL::RSA->new_public_key($key_string);
2880d4
-      $rsa_pub->use_sslv23_padding(); # use_pkcs1_oaep_padding is the default
2880d4
       $ciphertext = $rsa->encrypt($plaintext);
2880d4
 
2880d4
       $rsa_priv = Crypt::OpenSSL::RSA->new_private_key($key_string);
2880d4
@@ -140,10 +139,6 @@ Instance Methods
2880d4
         all new applications. It is the default mode used by
2880d4
         "Crypt::OpenSSL::RSA".
2880d4
 
2880d4
-    use_sslv23_padding
2880d4
-        Use PKCS #1 v1.5 padding with an SSL-specific modification that
2880d4
-        denotes that the server is SSL3 capable.
2880d4
-
2880d4
     use_md5_hash
2880d4
         Use the RFC 1321 MD5 hashing algorithm by Ron Rivest when signing
2880d4
         and verifying messages.
2880d4
@@ -168,7 +163,7 @@ Instance Methods
2880d4
         pkcs1_oaep_padding
2880d4
             at most 42 bytes less than this size.
2880d4
 
2880d4
-        pkcs1_padding or sslv23_padding
2880d4
+        pkcs1_padding
2880d4
             at most 11 bytes less than this size.
2880d4
 
2880d4
         no_padding
2880d4
diff --git a/RSA.pm b/RSA.pm
2880d4
index 31e6949..1b63e99 100644
2880d4
--- a/RSA.pm
2880d4
+++ b/RSA.pm
2880d4
@@ -34,8 +34,7 @@ Crypt::OpenSSL::RSA - RSA encoding and decoding, using the openSSL libraries
2880d4
   Crypt::OpenSSL::Random::random_seed($good_entropy);
2880d4
   Crypt::OpenSSL::RSA->import_random_seed();
2880d4
   $rsa_pub = Crypt::OpenSSL::RSA->new_public_key($key_string);
2880d4
-  $rsa_pub->use_sslv23_padding(); # use_pkcs1_oaep_padding is the default
2880d4
-  $ciphertext = $rsa->encrypt($plaintext);
2880d4
+    $ciphertext = $rsa->encrypt($plaintext);
2880d4
 
2880d4
   $rsa_priv = Crypt::OpenSSL::RSA->new_private_key($key_string);
2880d4
   $plaintext = $rsa->encrypt($ciphertext);
2880d4
@@ -220,11 +219,6 @@ an empty encoding parameter. This mode of padding is recommended for
2880d4
 all new applications.  It is the default mode used by
2880d4
 C<Crypt::OpenSSL::RSA>.
2880d4
 
2880d4
-=item use_sslv23_padding
2880d4
-
2880d4
-Use C<PKCS #1 v1.5> padding with an SSL-specific modification that
2880d4
-denotes that the server is SSL3 capable.
2880d4
-
2880d4
 =item use_md5_hash
2880d4
 
2880d4
 Use the RFC 1321 MD5 hashing algorithm by Ron Rivest when signing and
2880d4
@@ -267,7 +261,7 @@ the text to be encrypted should be:
2880d4
 
2880d4
 at most 42 bytes less than this size.
2880d4
 
2880d4
-=item pkcs1_padding or sslv23_padding
2880d4
+=item pkcs1_padding
2880d4
 
2880d4
 at most 11 bytes less than this size.
2880d4
 
2880d4
diff --git a/RSA.xs b/RSA.xs
2880d4
index d474d11..711e4e7 100644
2880d4
--- a/RSA.xs
2880d4
+++ b/RSA.xs
2880d4
@@ -640,12 +640,6 @@ use_pkcs1_oaep_padding(p_rsa)
2880d4
   CODE:
2880d4
     p_rsa->padding = RSA_PKCS1_OAEP_PADDING;
2880d4
 
2880d4
-void
2880d4
-use_sslv23_padding(p_rsa)
2880d4
-    rsaData* p_rsa;
2880d4
-  CODE:
2880d4
-    p_rsa->padding = RSA_SSLV23_PADDING;
2880d4
-
2880d4
 # Sign text. Returns the signature.
2880d4
 
2880d4
 SV*