SSL_CTX *\r
InitCTX( void )\r
{\r
- SSL_METHOD *method;\r
+ const SSL_METHOD *method;\r
SSL_CTX *ctx;\r
\r
SSL_library_init(); /* Load cryptos, et.al. */\r
SSL_load_error_strings(); /* Bring in and register error messages */\r
- method = SSLv2_client_method(); /* Create new client-method instance */\r
+ method = SSLv23_client_method(); /* Indicate we support SSLv2, SSLv3 and TLSv1 methods. */\r
ctx = SSL_CTX_new(method); /* Create new context */\r
if( ctx == NULL ) {\r
ERR_print_errors_fp(stderr);\r