Client side version negotiation rewrite
[openssl.git] / demos / bio / sconnect.c
index 6e4ca6596b6f069d36fcc21f27ec6048cf570246..865d50395692998918b5353649f7b6714e0c4d40 100644 (file)
@@ -43,7 +43,7 @@ char *argv[];
 
     /* Setup all the global SSL stuff */
     OpenSSL_add_ssl_algorithms();
-    ssl_ctx = SSL_CTX_new(SSLv23_client_method());
+    ssl_ctx = SSL_CTX_new(TLS_client_method());
 
     /* Lets make a SSL structure */
     ssl = SSL_new(ssl_ctx);