libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit e5fd7e14da95d93568cba31aa5a756cf63505d3f
parent 3b2c0e14365870933c6090d3c2537995e48b36e5
Author: Christian Grothoff <christian@grothoff.org>
Date:   Wed, 15 Feb 2017 13:29:18 +0100

convert have_dhparams to 'bool'

Diffstat:
Msrc/microhttpd/daemon.c | 8++++----
Msrc/microhttpd/internal.h | 4++--
2 files changed, 6 insertions(+), 6 deletions(-)

diff --git 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 @@ -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?