Skip to content

Commit

Permalink
libressl
Browse files Browse the repository at this point in the history
  • Loading branch information
rhenium committed Mar 23, 2024
1 parent d725420 commit ded7cb0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ext/openssl/ossl_ssl.c
Expand Up @@ -1724,6 +1724,10 @@ ossl_ssl_setup(VALUE self)
if (!bio)
ossl_raise(eSSLError, "BIO_new(ossl_bio_meth)");
BIO_set_data(bio, (void *)io);
#if OSSL_IS_LIBRESSL
// Incompatibility with OpenSSL?
BIO_set_init(bio, 1);
#endif
// Returns void currently (but wouldn't it be technically possible to fail?)
SSL_set_bio(ssl, bio, bio);
}
Expand Down

0 comments on commit ded7cb0

Please sign in to comment.