[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] 01/02: Request authorisation: detect possibly valid, bu
From: |
gnunet |
Subject: |
[libmicrohttpd] 01/02: Request authorisation: detect possibly valid, but unsupported type |
Date: |
Sun, 05 Jun 2022 11:49:42 +0200 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to branch master
in repository libmicrohttpd.
commit 00caba621214ab620b19e7e99cff1952ebed1292
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Thu Jun 2 19:19:49 2022 +0300
Request authorisation: detect possibly valid, but unsupported type
---
src/microhttpd/gen_auth.c | 2 +-
src/microhttpd/gen_auth.h | 3 ++-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/microhttpd/gen_auth.c b/src/microhttpd/gen_auth.c
index 0246a114..d5353863 100644
--- a/src/microhttpd/gen_auth.c
+++ b/src/microhttpd/gen_auth.c
@@ -480,7 +480,7 @@ parse_auth_rq_header_ (struct MHD_Connection *c)
if (NULL != rq_auth)
{
memset (rq_auth, 0, sizeof(struct MHD_AuthRqHeader));
- rq_auth->auth_type = MHD_AUTHTYPE_INVALID;
+ rq_auth->auth_type = MHD_AUTHTYPE_UNKNOWN;
}
return false;
}
diff --git a/src/microhttpd/gen_auth.h b/src/microhttpd/gen_auth.h
index 6be4eb4d..f6d207e5 100644
--- a/src/microhttpd/gen_auth.h
+++ b/src/microhttpd/gen_auth.h
@@ -41,7 +41,8 @@ enum MHD_AuthType
MHD_AUTHTYPE_NONE = 0,/**< No authorisation */
MHD_AUTHTYPE_BASIC, /**< Basic Authorisation, RFC 7617 */
MHD_AUTHTYPE_DIGEST, /**< Digest Authorisation, RFC 7616 */
- MHD_AUTHTYPE_INVALID /**< Wrong/Unknown/Unsupported authorisation type */
+ MHD_AUTHTYPE_UNKNOWN, /**< Unknown/Unsupported authorisation type */
+ MHD_AUTHTYPE_INVALID /**< Wrong/broken authorisation header */
};
#ifdef BAUTH_SUPPORT
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.