sergot / openssl

OpenSSL bindings for Perl 6
MIT License
14 stars 31 forks source link

fix SSL for say (gist) failure as suggested in rakudo ticket 4520 #93

Closed dwarring closed 2 years ago

dwarring commented 2 years ago

@Xliff See https://github.com/rakudo/rakudo/issues/4520

Fixes the segfault and makes OpenSSL valgrind clean for:

use Net::IMAP;
my $i = Net::IMAP.new(server => "imap.gmail.com", :ssl, :debug, port => 993);
say $i.raw.conn.ssl.ssl.WHAT.raku;
say $i.raw.conn.ssl.ssl.defined;
$i.raw.conn.ssl.ssl.say;
ugexe commented 2 years ago

Does this work with IO::Socket::Async::SSL ?

dwarring commented 2 years ago

@ugexe Umm no.

I've reinstated just the BIO_METHOD class to fix IO::Socket::Async::SSL