Server side version negotiation rewrite
[openssl.git] / demos / ssl / serv.cpp
index 6d4cefd5d02424ba159522c22d42fe6b3a05dc5d..9cb77f8275fbf9932ee3e9524a3ef1fb6ccd33c4 100644 (file)
@@ -55,7 +55,7 @@ void main ()
 
   SSL_load_error_strings();
   SSLeay_add_ssl_algorithms();
-  meth = SSLv23_server_method();
+  meth = TLS_server_method();
   ctx = SSL_CTX_new (meth);
   if (!ctx) {
     ERR_print_errors_fp(stderr);