]> granicus.if.org Git - openssl/commitdiff
fix no-ssl2 build
authorNils Larsch <nils@openssl.org>
Wed, 6 Dec 2006 16:52:55 +0000 (16:52 +0000)
committerNils Larsch <nils@openssl.org>
Wed, 6 Dec 2006 16:52:55 +0000 (16:52 +0000)
ssl/s23_meth.c

index f207140835f8680741db3e4ad3de83f69b1b0712..abdd8ee6c26e1d90d25c58bb8e5a09b0a895337f 100644 (file)
 static SSL_METHOD *ssl23_get_method(int ver);
 static SSL_METHOD *ssl23_get_method(int ver)
        {
+#ifndef OPENSSL_NO_SSL2
        if (ver == SSL2_VERSION)
                return(SSLv2_method());
-       else if (ver == SSL3_VERSION)
+       else
+#endif
+#ifndef OPENSSL_NO_SSL3
+       if (ver == SSL3_VERSION)
                return(SSLv3_method());
-       else if (ver == TLS1_VERSION)
+       else
+#endif
+#ifndef OPENSSL_NO_TLS1
+       if (ver == TLS1_VERSION)
                return(TLSv1_method());
        else
+#endif
                return(NULL);
        }