X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=ssl%2Ft1_meth.c;h=fb065d2c94cc5a47fd4c421ec14d553a8041bd74;hb=2dcf04d160e510321e8e633bbe8824491d5047bf;hp=512c2078e763740c939fa46ee9ea5f2988e3054c;hpb=58964a492275ca9a59a0cd9c8155cb2491b4b909;p=oweals%2Fopenssl.git diff --git a/ssl/t1_meth.c b/ssl/t1_meth.c index 512c2078e7..fb065d2c94 100644 --- a/ssl/t1_meth.c +++ b/ssl/t1_meth.c @@ -60,8 +60,13 @@ #include "objects.h" #include "ssl_locl.h" -static SSL_METHOD *tls1_get_method(ver) -int ver; +#ifndef NOPROTO +static SSL_METHOD *tls1_get_method(int ver); +#else +static SSL_METHOD *tls1_get_method(); +#endif + +static SSL_METHOD *tls1_get_method(int ver) { if (ver == TLS1_VERSION) return(TLSv1_method()); @@ -69,7 +74,7 @@ int ver; return(NULL); } -SSL_METHOD *TLSv1_method() +SSL_METHOD *TLSv1_method(void) { static int init=1; static SSL_METHOD TLSv1_data;