diff -Nru libanyevent-perl-7.130/debian/changelog libanyevent-perl-7.130/debian/changelog --- libanyevent-perl-7.130/debian/changelog 2016-10-19 19:05:00.000000000 +0000 +++ libanyevent-perl-7.130/debian/changelog 2016-12-17 16:07:08.000000000 +0000 @@ -1,3 +1,9 @@ +libanyevent-perl (7.130-2) unstable; urgency=medium + + * Add patch for OpenSSL 1.1 compatibility. (Closes: #848427) + + -- gregor herrmann Sat, 17 Dec 2016 17:07:08 +0100 + libanyevent-perl (7.130-1) unstable; urgency=medium [ gregor herrmann ] diff -Nru libanyevent-perl-7.130/debian/patches/anyevent-ssl1.1.patch libanyevent-perl-7.130/debian/patches/anyevent-ssl1.1.patch --- libanyevent-perl-7.130/debian/patches/anyevent-ssl1.1.patch 1970-01-01 00:00:00.000000000 +0000 +++ libanyevent-perl-7.130/debian/patches/anyevent-ssl1.1.patch 2016-12-17 16:07:08.000000000 +0000 @@ -0,0 +1,23 @@ +Description: OpenSSL 1.1 compatibility +Origin: upstream vcs, http://cvs.schmorp.de/AnyEvent/lib/AnyEvent/Handle.pm?r1=1.248&r2=1.249 +Bug: https://rt.cpan.org/Public/Bug/Display.html?id=118584 +Bug-Debian: https://bugs.debian.org/848427 +Author: Marc Lehmann +Last-Update: 2016-12-17 +Applied-Upstream: yes + +--- a/lib/AnyEvent/Handle.pm ++++ b/lib/AnyEvent/Handle.pm +@@ -2221,10 +2221,10 @@ + # we assume that most (but not all) of this insanity only applies to non-blocking cases, + # and we drive openssl fully in blocking mode here. Or maybe we don't - openssl seems to + # have identity issues in that area. +-# Net::SSLeay::CTX_set_mode ($ssl, ++# Net::SSLeay::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 ()); diff -Nru libanyevent-perl-7.130/debian/patches/series libanyevent-perl-7.130/debian/patches/series --- libanyevent-perl-7.130/debian/patches/series 2016-10-19 19:05:00.000000000 +0000 +++ libanyevent-perl-7.130/debian/patches/series 2016-12-17 16:07:08.000000000 +0000 @@ -1,2 +1,3 @@ fix-spelling.patch replace-abuse-die-with-warn.patch +anyevent-ssl1.1.patch