Commit 54a2631e authored by Nils Larsch's avatar Nils Larsch
Browse files

fix no-ssl2 build

parent 492a9070
Loading
Loading
Loading
Loading
+10 −2
Original line number Diff line number Diff line
@@ -63,13 +63,21 @@
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);
	}