openbsd-ports/devel/p5-AnyEvent/patches/patch-lib_AnyEvent_TLS_pm
2022-03-11 18:49:30 +00:00

15 lines
579 B
Plaintext

LibreSSL uses TLS 1.3. This is not expected by AnyEvent. Especially
an EPIPE error confuses the t/80_ssltest.t test.
Index: lib/AnyEvent/TLS.pm
--- lib/AnyEvent/TLS.pm.orig
+++ lib/AnyEvent/TLS.pm
@@ -629,6 +629,7 @@ sub new {
my $op = Net::SSLeay::OP_ALL ();
+ $op |= Net::SSLeay::OP_NO_TLSv1_3 (); # LibreSSL EPIPE is not expected
$op |= Net::SSLeay::OP_NO_SSLv2 () unless $arg{sslv2};
$op |= Net::SSLeay::OP_NO_SSLv3 () if exists $arg{sslv3} && !$arg{sslv3};
$op |= Net::SSLeay::OP_NO_TLSv1 () if exists $arg{tlsv1} && !$arg{tlsv1};