[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
- [GNUnet-SVN] [libmicrohttpd] branch master updated (2a815fe3 -> f154b0ef), gnunet, 2017/02/15
- [GNUnet-SVN] [libmicrohttpd] 06/08: convert tls_closed to 'bool', gnunet, 2017/02/15
- [GNUnet-SVN] [libmicrohttpd] 01/08: fix race related to MHD_quiesce_daemon setting the listen socket to -1 which may disrupt concurrent non-locking activities by instead setting a flag (which suffices given the document semantics of MHD_quiesce_daemon()); renaming the socket_fd to listen_fd to distinguish it better by name, gnunet, 2017/02/15
- [GNUnet-SVN] [libmicrohttpd] 03/08: convert upgrade_fd_in_epoll to 'bool', gnunet, 2017/02/15
- [GNUnet-SVN] [libmicrohttpd] 08/08: bump dates and versions and update ChangeLog, gnunet, 2017/02/15
- [GNUnet-SVN] [libmicrohttpd] 04/08: convert have_dhparams to 'bool',
gnunet <=
- [GNUnet-SVN] [libmicrohttpd] 02/08: convert listen_socket_in_epoll to 'bool', gnunet, 2017/02/15
- [GNUnet-SVN] [libmicrohttpd] 07/08: convert client_aware to 'bool', gnunet, 2017/02/15
- [GNUnet-SVN] [libmicrohttpd] 05/08: convert clean_ready to 'bool', gnunet, 2017/02/15