When ENGINE_add finds that id or name is missing, actually return
[openssl.git] / ssl / t1_srvr.c
index 451f384ecc51f07231d4566f64baeb5211c4e6c1..6e54b5169ccf4976c40ac154d5ff2bf0619dfeaa 100644 (file)
@@ -75,6 +75,10 @@ static const SSL_METHOD *tls1_get_server_method(int ver)
         return TLSv1_1_server_method();
     if (ver == TLS1_VERSION)
         return TLSv1_server_method();
+#ifndef OPENSSL_NO_SSL3
+    if (ver == SSL3_VERSION)
+        return (SSLv3_server_method());
+#endif
     return NULL;
 }
 
@@ -97,3 +101,9 @@ IMPLEMENT_tls_meth_func(TLS1_VERSION, TLSv1_server_method,
                         ssl3_accept,
                         ssl_undefined_function,
                         tls1_get_server_method, TLSv1_enc_data)
+
+#ifndef OPENSSL_NO_SSL3_METHOD
+IMPLEMENT_ssl3_meth_func(SSLv3_server_method,
+                         ssl3_accept,
+                         ssl_undefined_function, tls1_get_server_method)
+#endif