X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=ssl%2Fs23_meth.c;h=40eae0f0be624868f85f7cfb471aa80a32f5e368;hb=32213fb25a0eba962e1772bc8f3ea0766b7a6e3d;hp=115dc11a7e49bd5fc89456a1d970196a3e1a55a4;hpb=4ebb342fcd90562bce999dcc0915b16f816fbbf2;p=oweals%2Fopenssl.git diff --git a/ssl/s23_meth.c b/ssl/s23_meth.c index 115dc11a7e..40eae0f0be 100644 --- a/ssl/s23_meth.c +++ b/ssl/s23_meth.c @@ -63,13 +63,25 @@ static const SSL_METHOD *ssl23_get_method(int ver); static const 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 if (ver == TLS1_1_VERSION) + return(TLSv1_1_method()); + else if (ver == TLS1_2_VERSION) + return(TLSv1_2_method()); else +#endif return(NULL); }