Client side version negotiation rewrite
[openssl.git] / demos / ssl / cli.cpp
index cb5d329ea42da8f55a5c1cbedaa36ca745c71fd7..3459f0f93ac1010b0419b2a02f2170b29fb2d297 100644 (file)
@@ -38,7 +38,7 @@ void main ()
   SSL_METHOD *meth;
 
   SSLeay_add_ssl_algorithms();
-  meth = SSLv23_client_method();
+  meth = TLS_client_method();
   SSL_load_error_strings();
   ctx = SSL_CTX_new (meth);                        CHK_NULL(ctx);