GNU libmicrohttpd 1.0.0
|
HTTP authorisation general functions. More...
#include "gen_auth.h"
#include "internal.h"
#include "connection.h"
#include "mhd_str.h"
#include "mhd_assert.h"
Go to the source code of this file.
Enumerations | |
enum | MHD_AuthType { MHD_AUTHTYPE_NONE = 0 , MHD_AUTHTYPE_BASIC , MHD_AUTHTYPE_DIGEST , MHD_AUTHTYPE_UNKNOWN , MHD_AUTHTYPE_INVALID } |
Functions | |
static bool | find_auth_rq_header_ (const struct MHD_Connection *c, enum MHD_AuthType type, struct _MHD_str_w_len *auth_value) |
HTTP authorisation general functions.
Definition in file gen_auth.c.
enum MHD_AuthType |
Type of authorisation
Definition at line 46 of file gen_auth.c.
|
static |
Find required "Authorization" request header
c | the connection with request | |
type | the type of the authorisation: basic or digest | |
[out] | auth_value | will be set to the remaining of header value after authorisation token (after "Basic " or "Digest ") |
Definition at line 65 of file gen_auth.c.
References _MHD_AUTH_BASIC_BASE, _MHD_AUTH_DIGEST_BASE, MHD_HTTP_Req_Header::header, MHD_HTTP_Req_Header::header_size, MHD_Request::headers_received, MHD_HTTP_Req_Header::kind, _MHD_str_w_len::len, mhd_assert, MHD_AUTHTYPE_BASIC, MHD_AUTHTYPE_DIGEST, MHD_CONNECTION_HEADERS_PROCESSED, MHD_HEADER_KIND, MHD_HTTP_HEADER_AUTHORIZATION, MHD_STATICSTR_LEN_, MHD_str_equal_caseless_bin_n_(), MHD_HTTP_Req_Header::next, NULL, MHD_Connection::rq, MHD_Connection::state, _MHD_str_w_len::str, MHD_HTTP_Req_Header::value, and MHD_HTTP_Req_Header::value_size.