X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=src%2Fnetwork.c;h=0863cd847784b3be3643bb01d77e590ae7db866a;hb=fef3094bcfb4fae0b7409bb5270ec260b1c6ddee;hp=b46bce7115386bdeb9cbff7ca1dae17389b783e1;hpb=b309ccfdfd4593f3aecbdf1dafaed2f2c9d4a779;p=dockapps%2Fwmnotify.git diff --git a/src/network.c b/src/network.c index b46bce7..0863cd8 100644 --- a/src/network.c +++ b/src/network.c @@ -106,7 +106,7 @@ ConnectionEstablish( char *server_name, int port ) } #if HAVE_SSL - if( wmnotify_infos.use_ssl == TRUE ) { + if( wmnotify_infos.use_ssl == true ) { int status; status = InitSSL( wmnotify_infos.sock_fd ); if( status != EXIT_SUCCESS ) { @@ -137,7 +137,7 @@ int ConnectionTerminate( void ) { #if HAVE_SSL - if( wmnotify_infos.use_ssl == TRUE ) { + if( wmnotify_infos.use_ssl == true ) { SSL_free( ssl_infos.ssl ); /* release connection state */ } #endif @@ -145,7 +145,7 @@ ConnectionTerminate( void ) close( wmnotify_infos.sock_fd ); /* close socket */ #if HAVE_SSL - if( wmnotify_infos.use_ssl == TRUE ) { + if( wmnotify_infos.use_ssl == true ) { SSL_CTX_free( ssl_infos.ctx ); /* release context */ } #endif @@ -160,7 +160,7 @@ WmnotifySendData( char *buffer, int size ) int len; #if HAVE_SSL - if( wmnotify_infos.use_ssl == TRUE ) { + if( wmnotify_infos.use_ssl == true ) { len = SSL_write( ssl_infos.ssl, buffer, size ); /* Encrypt & send message */ if( len <= 0 ) { SSL_get_error( ssl_infos.ssl, len ); @@ -193,7 +193,7 @@ WmnotifyGetResponse( char *buffer, int max_size ) int len; #if HAVE_SSL - if( wmnotify_infos.use_ssl == TRUE ) { + if( wmnotify_infos.use_ssl == true ) { len = SSL_read( ssl_infos.ssl, buffer, max_size ); /* Get reply & decrypt. */ switch( SSL_get_error( ssl_infos.ssl, len ) ) { case SSL_ERROR_NONE: