Skip to content

Commit ded7cb0

Browse files
committed
libressl
1 parent d725420 commit ded7cb0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ext/openssl/ossl_ssl.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1724,6 +1724,10 @@ ossl_ssl_setup(VALUE self)
17241724
if (!bio)
17251725
ossl_raise(eSSLError, "BIO_new(ossl_bio_meth)");
17261726
BIO_set_data(bio, (void *)io);
1727+
#if OSSL_IS_LIBRESSL
1728+
// Incompatibility with OpenSSL?
1729+
BIO_set_init(bio, 1);
1730+
#endif
17271731
// Returns void currently (but wouldn't it be technically possible to fail?)
17281732
SSL_set_bio(ssl, bio, bio);
17291733
}

0 commit comments

Comments
 (0)