From 860b42e9180da4dcd7e8690a3fcdb4e37e5772c5 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 2 Jul 2020 21:56:55 +0200 Subject: [PATCH] fix return value of MHD_queue_basic_auth_fail_response --- ChangeLog | 3 +++ src/include/microhttpd.h | 2 +- src/microhttpd/basicauth.c | 4 ++-- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 16e837b1..a4bafe30 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +Thu 02 Jul 2020 09:56:23 PM CEST + Fixed return type of MHD_queue_basic_auth_fail_response. -CA/CG + Sun 28 Jun 2020 09:36:01 PM CEST Fix buffer overflow issue in URL parser. Releasing libmicrohttpd 0.9.71. -CG diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h index 00d4f9bd..7de7686b 100644 --- a/src/include/microhttpd.h +++ b/src/include/microhttpd.h @@ -3733,7 +3733,7 @@ MHD_basic_auth_get_username_password (struct MHD_Connection *connection, * @return #MHD_YES on success, #MHD_NO otherwise * @ingroup authentication */ -_MHD_EXTERN int +_MHD_EXTERN enum MHD_Result MHD_queue_basic_auth_fail_response (struct MHD_Connection *connection, const char *realm, struct MHD_Response *response); diff --git a/src/microhttpd/basicauth.c b/src/microhttpd/basicauth.c index 3208ee8c..d9532d4a 100644 --- a/src/microhttpd/basicauth.c +++ b/src/microhttpd/basicauth.c @@ -120,12 +120,12 @@ MHD_basic_auth_get_username_password (struct MHD_Connection *connection, * @return #MHD_YES on success, #MHD_NO otherwise * @ingroup authentication */ -int +enum MHD_Result MHD_queue_basic_auth_fail_response (struct MHD_Connection *connection, const char *realm, struct MHD_Response *response) { - int ret; + enum MHD_Result ret; int res; size_t hlen = strlen (realm) + strlen ("Basic realm=\"\"") + 1; char *header;