X-Git-Url: https://git.openssl.org/gitweb/?a=blobdiff_plain;f=ssl%2Fs23_clnt.c;h=386ebe3f8eedae92a55f0c17432a383ad1af49f0;hb=ef0a5354850becf858617d5ec62f440b51bda225;hp=c7f85a621f3d17483b885cee06134c7d36174483;hpb=5cc146f344bd2225e7afa66052a8401468b94ef4;p=openssl.git diff --git a/ssl/s23_clnt.c b/ssl/s23_clnt.c index c7f85a621f..386ebe3f8e 100644 --- a/ssl/s23_clnt.c +++ b/ssl/s23_clnt.c @@ -57,29 +57,20 @@ */ #include -#include "buffer.h" -#include "rand.h" -#include "objects.h" -#include "evp.h" +#include +#include +#include +#include #include "ssl_locl.h" -#define BREAK break - -#ifndef NOPROTO static SSL_METHOD *ssl23_get_client_method(int ver); static int ssl23_client_hello(SSL *s); static int ssl23_get_server_hello(SSL *s); -#else -static SSL_METHOD *ssl23_get_client_method(); -static int ssl23_client_hello(); -static int ssl23_get_server_hello(); -#endif - static SSL_METHOD *ssl23_get_client_method(int ver) { if (ver == SSL2_VERSION) return(SSLv2_client_method()); - else if (ver == SSL3_VERSION) + if (ver == SSL3_VERSION) return(SSLv3_client_method()); else if (ver == TLS1_VERSION) return(TLSv1_client_method());