gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [libmicrohttpd] 04/08: convert have_dhparams to 'bool'


From: gnunet
Subject: [GNUnet-SVN] [libmicrohttpd] 04/08: convert have_dhparams to 'bool'
Date: Wed, 15 Feb 2017 13:37:18 +0100

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository libmicrohttpd.

commit e5fd7e14da95d93568cba31aa5a756cf63505d3f
Author: Christian Grothoff <address@hidden>
AuthorDate: Wed Feb 15 13:29:18 2017 +0100

    convert have_dhparams to 'bool'
---
 src/microhttpd/daemon.c   | 8 ++++----
 src/microhttpd/internal.h | 4 ++--
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c
index 993ad27c..2c976a8d 100644
--- a/src/microhttpd/daemon.c
+++ b/src/microhttpd/daemon.c
@@ -538,7 +538,7 @@ MHD_init_daemon_certificate (struct MHD_Daemon *daemon)
        }
     }
 
-  if (MHD_YES == daemon->have_dhparams)
+  if (daemon->have_dhparams)
     {
       gnutls_certificate_set_dh_params (daemon->x509_cred,
                                         daemon->https_mem_dhparams);
@@ -4454,7 +4454,7 @@ parse_options_va (struct MHD_Daemon *daemon,
                   gnutls_dh_params_deinit (daemon->https_mem_dhparams);
                   return MHD_NO;
                 }
-              daemon->have_dhparams = MHD_YES;
+              daemon->have_dhparams = true;
             }
           else
             {
@@ -5839,10 +5839,10 @@ MHD_stop_daemon (struct MHD_Daemon *daemon)
 
   /* TLS clean up */
 #ifdef HTTPS_SUPPORT
-  if (MHD_YES == daemon->have_dhparams)
+  if (daemon->have_dhparams)
     {
       gnutls_dh_params_deinit (daemon->https_mem_dhparams);
-      daemon->have_dhparams = MHD_NO;
+      daemon->have_dhparams = false;
     }
   if (0 != (daemon->options & MHD_USE_TLS))
     {
diff --git a/src/microhttpd/internal.h b/src/microhttpd/internal.h
index 707bfe82..48da46d3 100644
--- a/src/microhttpd/internal.h
+++ b/src/microhttpd/internal.h
@@ -1550,9 +1550,9 @@ struct MHD_Daemon
   gnutls_dh_params_t https_mem_dhparams;
 
   /**
-   * #MHD_YES if we have initialized @e https_mem_dhparams.
+   * true if we have initialized @e https_mem_dhparams.
    */
-  int have_dhparams;
+  bool have_dhparams;
 
   /**
    * For how many connections do we have 'tls_read_ready' set to MHD_YES?

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]