}
#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 ) {
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
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
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 );
int len;
#if HAVE_SSL
- if( wmnotify_infos.use_ssl == TRUE ) {
- len = SSL_read( ssl_infos.ssl, buffer, max_size ); /* Get reply & decrypt */
+ 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:
/* Success. */