Răsfoiți Sursa

Merge branch 'maint'

* maint:
  Fix inverted logic for TLS_client_method() call
Bryan Drewery 6 ani în urmă
părinte
comite
39240a420e
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      src/openssl.cc

+ 2 - 2
src/openssl.cc

@@ -79,9 +79,9 @@ int init_openssl() {
   SSL_load_error_strings();
   OpenSSL_add_ssl_algorithms();
 #if !defined(LIBRESSL_VERSION_NUMBER) && OPENSSL_VERSION_NUMBER < 0x10100000L
-  ssl_ctx = SSL_CTX_new(TLS_client_method());
-#else
   ssl_ctx = SSL_CTX_new(SSLv23_client_method());
+#else
+  ssl_ctx = SSL_CTX_new(TLS_client_method());
 #endif
   if (!ssl_ctx) {
     sdprintf("SSL_CTX_new() failed");