Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions ext/openssl/extconf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,12 @@ def find_openssl_library
# added in 4.0.0
have_func("ASN1_BIT_STRING_set1(NULL, NULL, 0, 0)", "openssl/asn1.h")

# QUIC support - requires OpenSSL 3.5.0+, not available in LibreSSL
if is_openssl && checking_for("OpenSSL version >= 3.5.0") {
try_static_assert("OPENSSL_VERSION_NUMBER >= 0x30500000L", "openssl/opensslv.h") }
$defs.push("-DHAVE_OSSL_QUIC_CLIENT_METHOD")
end

Logging::message "=== Checking done. ===\n"

# Append flags from environment variables.
Expand Down
4 changes: 4 additions & 0 deletions ext/openssl/ossl.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@
# define OSSL_HAVE_IMMUTABLE_PKEY
#endif

#if !OSSL_IS_LIBRESSL && defined(HAVE_OSSL_QUIC_CLIENT_METHOD)
# define OSSL_USE_QUIC
#endif

/*
* Common Module
*/
Expand Down
Loading
Loading