Subject: | Compatibility issue with openssl 1.0.1? |
I have come across a couple of issues running the test suites of
downstream users of Net-SSLeay with openssl 1.0.1; in both cases,
reverting just openssl to 1.0.0g resolved the problem. The test suite of
Net-SSLeay itself passes with openssl 1.0.1 without problems.
Firstly, IO-Socket-SSL has a test t/dhe.t that fails with openssl 1.0.1:
DEBUG: .../IO/Socket/SSL.pm:494: no socket yet
DEBUG: .../IO/Socket/SSL.pm:193: set domain to 2
DEBUG: .../IO/Socket/SSL.pm:334: socket not yet connected
DEBUG: .../IO/Socket/SSL.pm:336: socket connected
DEBUG: .../IO/Socket/SSL.pm:496: accept created normal socket
IO::Socket::SSL=GLOB(0x8558278)
DEBUG: .../IO/Socket/SSL.pm:512: starting sslifying
DEBUG: .../IO/Socket/SSL.pm:354: ssl handshake not started
DEBUG: .../IO/Socket/SSL.pm:1281: SSL accept attempt failed with unknown
error
error:04075070:rsa routines:RSA_sign:digest too big for rsa key SSL
error: 31249: 1 - error:1409B006:SSL
routines:SSL3_SEND_SERVER_KEY_EXCHANGE:EVP lib
DEBUG: .../IO/Socket/SSL.pm:445: connection failed - connect returned 0
t/dhe.t .................... 1..3 ok # [server] Server Initialization
not ok # [server] accept failed:
Failed 2/3 subtests
I raised this at CPAN RT#75165 for IO-Socket-SSL but as this might be a
problem in either openssl, Net-SSLeay or IO-Socket-SSL itself, I thought
it was worthwhile to ask here too.
Secondly, the AnyEvent test t/80_ssltest.t fails in similar fashion:
# Failed test 'server_error <Protocol error>'
# at t/80_ssltest.t line 37.
# Failed test 'server_error <Protocol error>'
# at t/80_ssltest.t line 37.
# Failed test 'client_error <Broken pipe>'
# at t/80_ssltest.t line 97.
# Failed test 'server_error <Protocol error>'
# at t/80_ssltest.t line 37.
# Failed test 'client_error <Broken pipe>'
# at t/80_ssltest.t line 97.
# Failed test 'server_error <Protocol error>'
# at t/80_ssltest.t line 37.
# Failed test 'client_error <Broken pipe>'
# at t/80_ssltest.t line 97.
# Failed test 'server_error <Protocol error>'
# at t/80_ssltest.t line 37.
# Failed test 'client_error <Broken pipe>'
# at t/80_ssltest.t line 97.
# Looks like you planned 415 tests but ran 26.
# Looks like you failed 9 tests of 26 run.
t/80_ssltest.t ..............
Dubious, test returned 9 (wstat 2304, 0x900)
Failed 398/415 subtests
Since AnyEvent uses Net-SSLeay but not IO-Socket-SSL, maybe it's the
same issue and it's not in IO-Socket-SSL?