diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-02-15 13:32:39 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-02-15 13:32:39 +0100 |
commit | d170754b7d5365bf3e2f7277dd6a6ab065249aa2 (patch) | |
tree | f2d4db6fdf7a0f326b06f12d83309395c51bff27 | |
parent | 925adb38895740003e6309d8170202fde1c337d1 (diff) | |
download | libmicrohttpd-d170754b7d5365bf3e2f7277dd6a6ab065249aa2.tar.gz libmicrohttpd-d170754b7d5365bf3e2f7277dd6a6ab065249aa2.zip |
convert tls_closed to 'bool'
-rw-r--r-- | src/microhttpd/connection_https.c | 4 | ||||
-rw-r--r-- | 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) | |||
191 | int | 191 | int |
192 | MHD_tls_connection_shutdown (struct MHD_Connection *connection) | 192 | MHD_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 | /** |