From: Hugo Villeneuve Date: Sat, 25 May 2013 21:50:53 +0000 (-0400) Subject: Code reformatting X-Git-Tag: v0.3.2~7 X-Git-Url: http://gitweb.hugovil.com/?a=commitdiff_plain;h=a1a7d5dc60fb40d39c9f1cbc6b1879bc562299a7;p=dockapps%2Fwmnotify.git Code reformatting --- diff --git a/src/network.c b/src/network.c index e5eb47b..b46bce7 100644 --- a/src/network.c +++ b/src/network.c @@ -194,7 +194,7 @@ WmnotifyGetResponse( char *buffer, int max_size ) #if HAVE_SSL if( wmnotify_infos.use_ssl == TRUE ) { - len = SSL_read( ssl_infos.ssl, buffer, max_size ); /* Get reply & decrypt */ + len = SSL_read( ssl_infos.ssl, buffer, max_size ); /* Get reply & decrypt. */ switch( SSL_get_error( ssl_infos.ssl, len ) ) { case SSL_ERROR_NONE: /* Success. */ diff --git a/src/ssl.c b/src/ssl.c index 4b9f520..245ea8d 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -35,10 +35,10 @@ InitCTX( void ) SSL_METHOD *method; SSL_CTX *ctx; - OpenSSL_add_all_algorithms(); /* Load cryptos, et.al. */ - SSL_load_error_strings(); /* Bring in and register error messages */ + OpenSSL_add_all_algorithms(); /* Load cryptos, et.al. */ + SSL_load_error_strings(); /* Bring in and register error messages */ method = SSLv2_client_method(); /* Create new client-method instance */ - ctx = SSL_CTX_new(method); /* Create new context */ + ctx = SSL_CTX_new(method); /* Create new context */ if( ctx == NULL ) { ERR_print_errors_fp(stderr); abort();