GNU libmicrohttpd 1.0.1
|
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.
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_assert, MHD_AUTHTYPE_BASIC, MHD_AUTHTYPE_DIGEST, MHD_CONNECTION_HEADERS_PROCESSED, MHD_HEADER_KIND, MHD_HTTP_HEADER_AUTHORIZATION, MHD_HTTP_OK, MHD_STATICSTR_LEN_, MHD_str_equal_caseless_bin_n_(), and NULL.