diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-07-02 21:56:55 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-07-02 21:56:55 +0200 |
commit | 860b42e9180da4dcd7e8690a3fcdb4e37e5772c5 (patch) | |
tree | ff37ecdb57fc300ef3d53d623f6f01786f237f37 /src | |
parent | a110ae6276660bee3caab30e9ff3f12f85cf3241 (diff) | |
download | libmicrohttpd-860b42e9180da4dcd7e8690a3fcdb4e37e5772c5.tar.gz libmicrohttpd-860b42e9180da4dcd7e8690a3fcdb4e37e5772c5.zip |
fix return value of MHD_queue_basic_auth_fail_response
Diffstat (limited to 'src')
-rw-r--r-- | src/include/microhttpd.h | 2 | ||||
-rw-r--r-- | src/microhttpd/basicauth.c | 4 |
2 files changed, 3 insertions, 3 deletions
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, | |||
3733 | * @return #MHD_YES on success, #MHD_NO otherwise | 3733 | * @return #MHD_YES on success, #MHD_NO otherwise |
3734 | * @ingroup authentication | 3734 | * @ingroup authentication |
3735 | */ | 3735 | */ |
3736 | _MHD_EXTERN int | 3736 | _MHD_EXTERN enum MHD_Result |
3737 | MHD_queue_basic_auth_fail_response (struct MHD_Connection *connection, | 3737 | MHD_queue_basic_auth_fail_response (struct MHD_Connection *connection, |
3738 | const char *realm, | 3738 | const char *realm, |
3739 | struct MHD_Response *response); | 3739 | 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, | |||
120 | * @return #MHD_YES on success, #MHD_NO otherwise | 120 | * @return #MHD_YES on success, #MHD_NO otherwise |
121 | * @ingroup authentication | 121 | * @ingroup authentication |
122 | */ | 122 | */ |
123 | int | 123 | enum MHD_Result |
124 | MHD_queue_basic_auth_fail_response (struct MHD_Connection *connection, | 124 | MHD_queue_basic_auth_fail_response (struct MHD_Connection *connection, |
125 | const char *realm, | 125 | const char *realm, |
126 | struct MHD_Response *response) | 126 | struct MHD_Response *response) |
127 | { | 127 | { |
128 | int ret; | 128 | enum MHD_Result ret; |
129 | int res; | 129 | int res; |
130 | size_t hlen = strlen (realm) + strlen ("Basic realm=\"\"") + 1; | 130 | size_t hlen = strlen (realm) + strlen ("Basic realm=\"\"") + 1; |
131 | char *header; | 131 | char *header; |