X-Git-Url: https://git.openssl.org/?a=blobdiff_plain;f=ssl%2Fs2_meth.c;h=d30b7179f7cfe0d74c799eab0068ff98a764ef9d;hb=63b6090f7ca194b38d7b8318b9d63636c467b404;hp=d1940388ed6087ea5dff181eff003099bdb3daab;hpb=ec577822f95a8bca0023c5c77cef1a4916822d4a;p=openssl.git diff --git a/ssl/s2_meth.c b/ssl/s2_meth.c index d1940388ed..d30b7179f7 100644 --- a/ssl/s2_meth.c +++ b/ssl/s2_meth.c @@ -56,16 +56,12 @@ * [including the GNU Public Licence.] */ +#include "ssl_locl.h" +#ifndef OPENSSL_NO_SSL2 #include #include -#include "ssl_locl.h" -#ifndef NOPROTO static SSL_METHOD *ssl2_get_method(int ver); -#else -static SSL_METHOD *ssl2_get_method(); -#endif - static SSL_METHOD *ssl2_get_method(int ver) { if (ver == SSL2_VERSION) @@ -90,4 +86,10 @@ SSL_METHOD *SSLv2_method(void) } return(&SSLv2_data); } +#else /* !OPENSSL_NO_SSL2 */ + +# if PEDANTIC +static void *dummy=&dummy; +# endif +#endif