mirror of
https://git.gnunet.org/libmicrohttpd.git
synced 2026-09-25 04:09:31 +03:00
Request authorisation: detect possibly valid, but unsupported type
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user