diff options
author | Eric Wong <e@80x24.org> | 2019-07-01 08:56:51 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2019-07-05 04:03:28 +0000 |
commit | f97f84ecbe02223af61fc5ea5074a90b1194cdd2 (patch) | |
tree | c225418293fc04e53e9e1fc766430e3fac18238a /t/nntpd.t | |
parent | 620b5e23dded54e0abf954752767bc9683a882e3 (diff) | |
download | public-inbox-f97f84ecbe02223af61fc5ea5074a90b1194cdd2.tar.gz |
Net::NNTP won't attempt to use older versions of IO::Socket::SSL because 2.007 is the "first version with default CA on most platforms" according to comments in Net::NNTP. But then again we don't make remote requests when testing...
Diffstat (limited to 't/nntpd.t')
-rw-r--r-- | t/nntpd.t | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -104,6 +104,10 @@ EOF SKIP: { $n->can('starttls') or skip('Net::NNTP too old to support STARTTLS', 2); + eval { + require IO::Socket::SSL; + IO::Socket::SSL->VERSION(2.007); + } or skip('IO::Socket::SSL <2.007 not supported by Net::NNTP'); ok(!$n->starttls, 'STARTTLS fails when unconfigured'); is($n->code, 580, 'got 580 code on server w/o TLS'); }; |