aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2017-02-15 13:32:39 +0100
committerChristian Grothoff <christian@grothoff.org>2017-02-15 13:32:39 +0100
commitd170754b7d5365bf3e2f7277dd6a6ab065249aa2 (patch)
treef2d4db6fdf7a0f326b06f12d83309395c51bff27
parent925adb38895740003e6309d8170202fde1c337d1 (diff)
downloadlibmicrohttpd-d170754b7d5365bf3e2f7277dd6a6ab065249aa2.tar.gz
libmicrohttpd-d170754b7d5365bf3e2f7277dd6a6ab065249aa2.zip
convert tls_closed to 'bool'
-rw-r--r--src/microhttpd/connection_https.c4
-rw-r--r--src/microhttpd/internal.h2
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)
191int 191int
192MHD_tls_connection_shutdown (struct MHD_Connection *connection) 192MHD_tls_connection_shutdown (struct MHD_Connection *connection)
193{ 193{
194 if (MHD_NO != connection->tls_closed) 194 if (connection->tls_closed)
195 return MHD_NO; 195 return MHD_NO;
196 196
197 connection->tls_closed = MHD_YES; 197 connection->tls_closed = true;
198 return (GNUTLS_E_SUCCESS == gnutls_bye(connection->tls_session, GNUTLS_SHUT_WR)) ? 198 return (GNUTLS_E_SUCCESS == gnutls_bye(connection->tls_session, GNUTLS_SHUT_WR)) ?
199 MHD_YES : MHD_NO; 199 MHD_YES : MHD_NO;
200} 200}
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
937 /** 937 /**
938 * TLS layer was shut down? 938 * TLS layer was shut down?
939 */ 939 */
940 int tls_closed; 940 bool tls_closed;
941#endif /* HTTPS_SUPPORT */ 941#endif /* HTTPS_SUPPORT */
942 942
943 /** 943 /**