Added SSLv3 and TLSv1 methods in addition to SSLv2
[dockapps/wmnotify.git] / src / ssl.c
index 6df0b23..46827f7 100644 (file)
--- a/src/ssl.c
+++ b/src/ssl.c
@@ -1,7 +1,23 @@
-/* ssl.c */\r
-\r
-/* Based on ssl_client.c (Sean Walton and Macmillan Publishers). */\r
-\r
+/*\r
+ * ssl.c\r
+ *\r
+ * Copyright (C) 2003 Hugo Villeneuve <hugo@hugovil.com>\r
+ * Based on ssl_client.c (Sean Walton and Macmillan Publishers).\r
+ *\r
+ * This program is free software; you can redistribute it and/or modify\r
+ * it under the terms of the GNU General Public License as published by\r
+ * the Free Software Foundation; either version 2 of the License, or\r
+ * (at your option) any later version.\r
+ *\r
+ * This program is distributed in the hope that it will be useful,\r
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of\r
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
+ * GNU General Public License for more details.\r
+ *\r
+ * You should have received a copy of the GNU General Public License\r
+ * along with this program; if not, write to the Free Software\r
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.\r
+ */\r
 \r
 #if HAVE_CONFIG_H\r
 #  include "config.h"\r
@@ -37,7 +53,7 @@ InitCTX( void )
   \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