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;