X-Git-Url: https://git.openssl.org/gitweb/?a=blobdiff_plain;f=ssl%2Fs2_meth.c;h=e2add164ddbee56fcded632f368dc1cc41edc850;hb=e766a681aa4df604b20ce2d23cd131b74af9eaf7;hp=cfc8828cc7185e85cee6d71c87cc36558393d5e1;hpb=78414a6a897db42c9bcf06aa21c705811ab33921;p=openssl.git diff --git a/ssl/s2_meth.c b/ssl/s2_meth.c index cfc8828cc7..e2add164dd 100644 --- a/ssl/s2_meth.c +++ b/ssl/s2_meth.c @@ -56,12 +56,13 @@ * [including the GNU Public Licence.] */ +#ifndef NO_RSA #include -#include "objects.h" +#include #include "ssl_locl.h" -static SSL_METHOD *ssl2_get_method(ver) -int ver; +static SSL_METHOD *ssl2_get_method(int ver); +static SSL_METHOD *ssl2_get_method(int ver) { if (ver == SSL2_VERSION) return(SSLv2_method()); @@ -69,20 +70,20 @@ int ver; return(NULL); } -SSL_METHOD *SSLv2_method() +SSL_METHOD *SSLv2_method(void) { static int init=1; static SSL_METHOD SSLv2_data; if (init) { - init=0; memcpy((char *)&SSLv2_data,(char *)sslv2_base_method(), sizeof(SSL_METHOD)); SSLv2_data.ssl_connect=ssl2_connect; SSLv2_data.ssl_accept=ssl2_accept; SSLv2_data.get_ssl_method=ssl2_get_method; + init=0; } return(&SSLv2_data); } - +#endif