]> sjero.net Git - wget/commitdiff
openssl: Use SSLv2 only when available.
authorCristian Rodrwuez <crrodriguez@opensuse.org>
Mon, 11 Apr 2011 09:08:39 +0000 (11:08 +0200)
committerGiuseppe Scrivano <gscrivano@gnu.org>
Mon, 11 Apr 2011 09:08:39 +0000 (11:08 +0200)
src/ChangeLog
src/openssl.c

index e35815175c89eed32c22d88f171ab6f120806b7d..b1207895a569418e465606e9f4bdb5d46c0684c1 100644 (file)
@@ -1,3 +1,8 @@
+2011-04-11  Cristian Rodríguez  <crrodriguez@opensuse.org> (tiny change)
+
+       * openssl.c (ssl_init) [! OPENSSL_NO_SSL2]: Use SSLv2 only when
+       available.
+
 2011-04-07  Giuseppe Scrivano  <gscrivano@gnu.org>
 
        * gnutls.c (ssl_init): Allow X509 v1 certificates.
index 201d24597995bbba66460fe709dcbb5f281dc9c3..78fb5d85c6761ecc08b30195223421165050cf81 100644 (file)
@@ -186,9 +186,11 @@ ssl_init ()
     case secure_protocol_auto:
       meth = SSLv23_client_method ();
       break;
+#ifndef OPENSSL_NO_SSL2
     case secure_protocol_sslv2:
       meth = SSLv2_client_method ();
       break;
+#endif
     case secure_protocol_sslv3:
       meth = SSLv3_client_method ();
       break;