packages/net/spoofer/patches/010-openssl-deprecated.patch
Rosen Penev 3718caa64d spoofer: Fix compilation without deprecated OpenSSL APIs
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2019-01-06 21:06:30 -08:00

13 lines
375 B
Diff

--- a/prober/spoofer-prober.cc
+++ b/prober/spoofer-prober.cc
@@ -2135,8 +2135,10 @@ int main(int argc, char **argv) {
#endif
#ifdef HAVE_LIBSSL
if (enableTLS) {
+#if OPENSSL_VERSION_NUMBER < 0x10100000L
SSL_load_error_strings();
SSL_library_init();
+#endif
ssl_ctx = SSL_CTX_new(SSLv23_client_method());
if (!ssl_ctx) {
ssl_err("SSL_CTX_new() failed");