Suppress warnings by OpenSSL 3
This commit is contained in:
parent
b426de9e8e
commit
6d8f396f37
Notes:
git
2022-03-16 20:49:30 +09:00
@ -171,6 +171,7 @@ have_func("SSL_CTX_set_post_handshake_auth")
|
|||||||
have_func("EVP_PKEY_check")
|
have_func("EVP_PKEY_check")
|
||||||
|
|
||||||
# added in 3.0.0
|
# added in 3.0.0
|
||||||
|
openssl_3 =
|
||||||
have_func("SSL_set0_tmp_dh_pkey")
|
have_func("SSL_set0_tmp_dh_pkey")
|
||||||
have_func("ERR_get_error_all")
|
have_func("ERR_get_error_all")
|
||||||
have_func("TS_VERIFY_CTX_set_certs(NULL, NULL)", "openssl/ts.h")
|
have_func("TS_VERIFY_CTX_set_certs(NULL, NULL)", "openssl/ts.h")
|
||||||
@ -183,6 +184,12 @@ have_func("EVP_PKEY_dup")
|
|||||||
|
|
||||||
Logging::message "=== Checking done. ===\n"
|
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_header
|
||||||
create_makefile("openssl")
|
create_makefile("openssl")
|
||||||
Logging::message "Done.\n"
|
Logging::message "Done.\n"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user