fix return value of MHD_queue_basic_auth_fail_response

This commit is contained in:
Christian Grothoff
2020-07-02 21:56:55 +02:00
parent a110ae6276
commit 860b42e918
3 changed files with 6 additions and 3 deletions
+3
View File
@@ -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
+1 -1
View File
@@ -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);
+2 -2
View File
@@ -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;