libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit c575f67285f6bd984a3cfca5635ffa8c496ef391
parent 1c4f23db7458d79a04c8e68022ade67cb5ee006b
Author: Christian Grothoff <christian@grothoff.org>
Date:   Sun, 26 Jul 2020 14:15:55 +0200

Merge branch 'master' of git+ssh://gnunet.org/libmicrohttpd

Diffstat:
Mdoc/chapters/basicauthentication.inc | 1+
Mdoc/examples/basicauthentication.c | 2+-
Mdoc/libmicrohttpd.texi | 2+-
3 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/doc/chapters/basicauthentication.inc b/doc/chapters/basicauthentication.inc @@ -87,6 +87,7 @@ answer_to_connection (void *cls, struct MHD_Connection *connection, char *user; char *pass; int fail; + enum MHD_Result ret; struct MHD_Response *response; if (0 != strcmp (method, MHD_HTTP_METHOD_GET)) diff --git a/doc/examples/basicauthentication.c b/doc/examples/basicauthentication.c @@ -26,7 +26,7 @@ answer_to_connection (void *cls, struct MHD_Connection *connection, char *user; char *pass; int fail; - int ret; + enum MHD_Result ret; struct MHD_Response *response; (void) cls; /* Unused. Silent compiler warning. */ (void) url; /* Unused. Silent compiler warning. */ diff --git a/doc/libmicrohttpd.texi b/doc/libmicrohttpd.texi @@ -2507,7 +2507,7 @@ If returned value is not @code{NULL}, the value must be @code{MHD_free()}'ed. If returned value is not @code{NULL}, the value must be @code{MHD_free()}'ed. @end deftypefun -@deftypefun {int} MHD_queue_basic_auth_fail_response (struct MHD_Connection *connection, const char *realm, struct MHD_Response *response) +@deftypefun {enum MHD_Result} MHD_queue_basic_auth_fail_response (struct MHD_Connection *connection, const char *realm, struct MHD_Response *response) Queues a response to request basic authentication from the client. Return @code{MHD_YES} if successful, otherwise @code{MHD_NO}.