Join GitHub today
test: silence compiler warning in openssl-binding #26067
Currently, this test generated the following compiler warning:
../binding.cc:33:30: warning: 'TLSv1_2_server_method' is deprecated [-Wdeprecated-declarations] const SSL_METHOD* method = TLSv1_2_server_method(); ^ /node/deps/openssl/openssl/include/openssl/ssl.h:1877:1: note: 'TLSv1_2_server_method' has been explicitly marked deprecated here DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_2_server_method(void)) ^ 1 warning generated.
This commit adds
In this particular case the test is deliberately using a deprecated method. It was recently added in #25991 as a regression test since we export OpenSSL symbols to addon authors (who will still get the warnings unless they suppress them like we're doing here for this test).