Don't set client_version to the ServerHello version.
[openssl.git] / ssl / ssl_task.c
index e36af0eb94aa906da38db81c0d3551a4155d48c6..9c4982cb864ca1f3d685dd3d46886528558444cd 100644 (file)
@@ -228,10 +228,7 @@ int main ( int argc, char **argv )
        SSL_load_error_strings();
        OpenSSL_add_all_algorithms();
 
-/* DRM, this was the original, but there is no such thing as SSLv2()
-       s_ctx=SSL_CTX_new(SSLv2());
-*/
-       s_ctx=SSL_CTX_new(SSLv2_server_method());
+       s_ctx=SSL_CTX_new(SSLv23_server_method());
 
        if (s_ctx == NULL) goto end;
 
@@ -258,7 +255,7 @@ int doit(io_channel chan, SSL_CTX *s_ctx )
 {
     int status, length, link_state;
      struct rpc_msg msg;
-       static char cbuf[200],sbuf[200];
+
        SSL *s_ssl=NULL;
        BIO *c_to_s=NULL;
        BIO *s_to_c=NULL;