perl-IO-Socket-SSL/IO-Socket-SSL-1.58-dhe.patch
Paul Howarth 99c05d2f9b Update to 1.58
- New upstream release 1.58
  - Fix t/dhe.t for openssl 1.0.1 beta by forcing TLSv1, so that it does not
    complain about the too small RSA key, which it should not use anyway; this
    workaround is not applied for older openssl versions, where it would cause
    failures (CPAN RT#75165)
- Add patch to fiddle the openssl version number in the t/dhe.t workaround
  because the OPENSSL_VERSION_NUMBER cannot be trusted in Fedora
- One buildreq per line for readability
- Drop redundant buildreq perl(Test::Simple)
- Always run full test suite
2012-02-27 11:09:47 +00:00

17 lines
699 B
Diff

Fedora's openssl is patched to keep OPENSSL_VERSION_NUMBER stable
to give the appearance of ABI stability, which breaks tests like
this one; fortunately it's safe to roll back the version number
in a way that works with genuine 1.0.0 releases.
--- IO-Socket-SSL/t/dhe.t
+++ IO-Socket-SSL/t/dhe.t
@@ -35,7 +35,7 @@
# openssl 1.0.1(beta2) complains about the rsa key too small, unless
# we explicitly set version to tlsv1 or sslv3
# unfortunatly the workaround fails for older openssl versions :(
- (Net::SSLeay::OPENSSL_VERSION_NUMBER() >= 0x10001000)
+ (Net::SSLeay::OPENSSL_VERSION_NUMBER() >= 0x10000000)
? ( SSL_version => 'tlsv1' ):()
) || do {
notok($!);