[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [libmicrohttpd] 06/08: convert tls_closed to 'bool'
From: |
gnunet |
Subject: |
[GNUnet-SVN] [libmicrohttpd] 06/08: convert tls_closed to 'bool' |
Date: |
Wed, 15 Feb 2017 13:37:20 +0100 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository libmicrohttpd.
commit d170754b7d5365bf3e2f7277dd6a6ab065249aa2
Author: Christian Grothoff <address@hidden>
AuthorDate: Wed Feb 15 13:32:39 2017 +0100
convert tls_closed to 'bool'
---
src/microhttpd/connection_https.c | 4 ++--
src/microhttpd/internal.h | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/microhttpd/connection_https.c
b/src/microhttpd/connection_https.c
index f1f1f90c..dea9956d 100644
--- a/src/microhttpd/connection_https.c
+++ b/src/microhttpd/connection_https.c
@@ -191,10 +191,10 @@ MHD_set_https_callbacks (struct MHD_Connection
*connection)
int
MHD_tls_connection_shutdown (struct MHD_Connection *connection)
{
- if (MHD_NO != connection->tls_closed)
+ if (connection->tls_closed)
return MHD_NO;
- connection->tls_closed = MHD_YES;
+ connection->tls_closed = true;
return (GNUTLS_E_SUCCESS == gnutls_bye(connection->tls_session,
GNUTLS_SHUT_WR)) ?
MHD_YES : MHD_NO;
}
diff --git a/src/microhttpd/internal.h b/src/microhttpd/internal.h
index c47ed06d..f2e61d51 100644
--- a/src/microhttpd/internal.h
+++ b/src/microhttpd/internal.h
@@ -937,7 +937,7 @@ struct MHD_Connection
/**
* TLS layer was shut down?
*/
- int tls_closed;
+ bool tls_closed;
#endif /* HTTPS_SUPPORT */
/**
--
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 <=
- [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, 2017/02/15
- [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