From: "xtkoba (Tee KOBAYASHI)" Date: 2021-09-25T18:24:19+00:00 Subject: [ruby-core:105419] [Ruby master Misc#18192] Advertise that OpenSSL 3.0 is not supported Issue #18192 has been reported by xtkoba (Tee KOBAYASHI). ---------------------------------------- Misc #18192: Advertise that OpenSSL 3.0 is not supported https://bugs.ruby-lang.org/issues/18192 * Author: xtkoba (Tee KOBAYASHI) * Status: Open * Priority: Normal ---------------------------------------- Can we document that OpenSSL 3.0 is not supported? I believe at least we can make `extconf.rb` fail with OpenSSL 3.0: ```diff --- a/ext/openssl/extconf.rb +++ b/ext/openssl/extconf.rb @@ -108,10 +108,12 @@ try_static_assert("LIBRESSL_VERSION_NUMBER >= 0x30100000L", "openssl/opensslv.h") } else checking_for("OpenSSL version >= 1.0.2") { - try_static_assert("OPENSSL_VERSION_NUMBER >= 0x10002000L", "openssl/opensslv.h") } + try_static_assert("OPENSSL_VERSION_NUMBER >= 0x10002000L", "openssl/opensslv.h") } && + checking_for("OpenSSL version < 3.0.0") { + try_static_assert("OPENSSL_VERSION_NUMBER < 0x30000000L", "openssl/opensslv.h") } end unless version_ok - raise "OpenSSL >= 1.0.2 or LibreSSL >= 3.1.0 is required" + raise "OpenSSL >= 1.0.2, < 3.0.0 or LibreSSL >= 3.1.0 is required" end # Prevent wincrypt.h from being included, which defines conflicting macro with openssl/x509.h ``` -- https://bugs.ruby-lang.org/ Unsubscribe: