diff options
author | Kazuki Yamaguchi <k@rhe.jp> | 2024-03-24 03:42:05 +0900 |
---|---|---|
committer | Kazuki Yamaguchi <k@rhe.jp> | 2024-03-24 03:42:05 +0900 |
commit | ded7cb0127c3f128304a6892c98a51b64d384b70 (patch) | |
tree | 2a7ae94f2cf045d4787822299fa35b3a397e917d | |
parent | d72542054e07fce268e8b1d9aa2d5ec491bb3c44 (diff) | |
download | ruby-openssl-ky/ssl-ruby-io.tar.gz |
libresslky/ssl-ruby-io
-rw-r--r-- | ext/openssl/ossl_ssl.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/openssl/ossl_ssl.c b/ext/openssl/ossl_ssl.c index 97375cee..482fb128 100644 --- a/ext/openssl/ossl_ssl.c +++ b/ext/openssl/ossl_ssl.c @@ -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); } |