X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=src%2Fssl.c;h=46827f774b82cd7143320fda3f1357170aff6350;hb=614fdbc3f0bd7672ed0d61ad0912e18dfc12afe6;hp=6df0b23a96b2c7e45aa4f24c7c9b862d94d68b32;hpb=c204b571bad7df2f1de4ff5f30f14923565081c7;p=dockapps%2Fwmnotify.git diff --git a/src/ssl.c b/src/ssl.c index 6df0b23..46827f7 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -1,7 +1,23 @@ -/* ssl.c */ - -/* Based on ssl_client.c (Sean Walton and Macmillan Publishers). */ - +/* + * ssl.c + * + * Copyright (C) 2003 Hugo Villeneuve + * Based on ssl_client.c (Sean Walton and Macmillan Publishers). + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. + */ #if HAVE_CONFIG_H # include "config.h" @@ -37,7 +53,7 @@ InitCTX( void ) SSL_library_init(); /* Load cryptos, et.al. */ SSL_load_error_strings(); /* Bring in and register error messages */ - method = SSLv2_client_method(); /* Create new client-method instance */ + method = SSLv23_client_method(); /* Indicate we support SSLv2, SSLv3 and TLSv1 methods. */ ctx = SSL_CTX_new(method); /* Create new context */ if( ctx == NULL ) { ERR_print_errors_fp(stderr);