bug-commoncpp
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] ssl: use SSLv23_client_method instead of SSLv3_client_method


From: Stefan Strogin
Subject: [PATCH] ssl: use SSLv23_client_method instead of SSLv3_client_method
Date: Thu, 21 Feb 2019 00:08:46 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1

SSLv3_client_method() is deprecated in OpenSSL-1.1 and LibreSSL.
They suggest to use SSLv23_client_method().

Do so to fix compilation with OpenSSL >=1.1 and LibreSSL.

Index: src/ssl.cpp
===================================================================
--- src/ssl.cpp (revision 1907)
+++ src/ssl.cpp (working copy)
@@ -386,7 +386,7 @@
     if(so == INVALID_SOCKET)
         return false;
 
-    ctx = SSL_CTX_new(SSLv3_client_method());
+    ctx = SSL_CTX_new(SSLv23_client_method());
     if(!ctx) {
         SSL_CTX_free(ctx);
         return false;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]