When ENGINE_add finds that id or name is missing, actually return
[openssl.git] / ssl / t1_meth.c
index 0726274ba3558e054fef8cb5ffd83ca2354f929e..aa16d3f2a879603c3cbd6f4c92d167c567ed5943 100644 (file)
@@ -70,6 +70,11 @@ static const SSL_METHOD *tls1_get_method(int ver)
         return TLSv1_1_method();
     if (ver == TLS1_VERSION)
         return TLSv1_method();
+#ifndef OPENSSL_NO_SSL3
+    if (ver == SSL3_VERSION)
+        return (SSLv3_method());
+    else
+#endif
     return NULL;
 }
 
@@ -88,3 +93,8 @@ IMPLEMENT_tls_meth_func(TLS1_1_VERSION, TLSv1_1_method,
 IMPLEMENT_tls_meth_func(TLS1_VERSION, TLSv1_method,
                         ssl3_accept,
                         ssl3_connect, tls1_get_method, TLSv1_enc_data)
+
+#ifndef OPENSSL_NO_SSL3_METHOD
+IMPLEMENT_ssl3_meth_func(SSLv3_method,
+                         ssl3_accept, ssl3_connect, tls1_get_method)
+#endif