Skip to content
Closed
Changes from all commits
Commits
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
7 changes: 7 additions & 0 deletions ext/openssl/extconf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ def find_openssl_library
have_func("SSL_CTX_set_ciphersuites")

# added in 3.0.0
openssl_3 =
have_func("SSL_set0_tmp_dh_pkey")
have_func("ERR_get_error_all")
have_func("TS_VERIFY_CTX_set_certs(NULL, NULL)", "openssl/ts.h")
Expand All @@ -184,6 +185,12 @@ def find_openssl_library

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

if openssl_3
if $warnflags&.sub!(/-W\K(?=deprecated-declarations)/, 'no-')
$warnflags << " -Wno-incompatible-pointer-types-discards-qualifiers"
end
end

create_header
create_makefile("openssl")
Logging::message "Done.\n"