Fix compilation warning with SSLv23_client_method()
[dockapps/wmnotify.git] / src / ssl.c
index 76aa32d..3acb529 100644 (file)
--- a/src/ssl.c
+++ b/src/ssl.c
 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