mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
21 lines
930 B
Diff
21 lines
930 B
Diff
diff -urN a/lib/AnyEvent/Handle.pm b/lib/AnyEvent/Handle.pm
|
|
--- a/lib/AnyEvent/Handle.pm 2016-01-07 10:01:45.000000000 +0000
|
|
+++ b/lib/AnyEvent/Handle.pm 2017-04-27 01:33:17.600679762 +0000
|
|
@@ -2130,7 +2130,7 @@
|
|
}
|
|
|
|
$self->{_on_starttls}
|
|
- and Net::SSLeay::state ($self->{tls}) == Net::SSLeay::ST_OK ()
|
|
+ and Net::SSLeay::state ($self->{tls}) == 1
|
|
and (delete $self->{_on_starttls})->($self, 1, "TLS/SSL connection established");
|
|
}
|
|
|
|
@@ -2224,7 +2224,7 @@
|
|
# Net::SSLeay::CTX_set_mode ($ssl,
|
|
# (eval { local $SIG{__DIE__}; Net::SSLeay::MODE_ENABLE_PARTIAL_WRITE () } || 1)
|
|
# | (eval { local $SIG{__DIE__}; Net::SSLeay::MODE_ACCEPT_MOVING_WRITE_BUFFER () } || 2));
|
|
- Net::SSLeay::CTX_set_mode ($tls, 1|2);
|
|
+ Net::SSLeay::set_mode ($tls, 1|2);
|
|
|
|
$self->{_rbio} = Net::SSLeay::BIO_new (Net::SSLeay::BIO_s_mem ());
|
|
$self->{_wbio} = Net::SSLeay::BIO_new (Net::SSLeay::BIO_s_mem ());
|