|
|
|
@ -21,6 +21,7 @@ typedef enum http_auth_digest_type {
|
|
|
|
|
#define HTTP_AUTH_DIGEST_SHA256_BINLEN 32 /* SHA256_DIGEST_LENGTH */
|
|
|
|
|
#define HTTP_AUTH_DIGEST_SHA512_256_BINLEN 32 /* SHA512_256_DIGEST_LENGTH */
|
|
|
|
|
|
|
|
|
|
__attribute_const__
|
|
|
|
|
unsigned int http_auth_digest_len (int algo);
|
|
|
|
|
|
|
|
|
|
struct http_auth_scheme_t;
|
|
|
|
@ -39,11 +40,13 @@ typedef struct http_auth_require_t {
|
|
|
|
|
} http_auth_require_t;
|
|
|
|
|
|
|
|
|
|
__attribute_cold__
|
|
|
|
|
__attribute_malloc__
|
|
|
|
|
http_auth_require_t * http_auth_require_init (void);
|
|
|
|
|
|
|
|
|
|
__attribute_cold__
|
|
|
|
|
void http_auth_require_free (http_auth_require_t *require);
|
|
|
|
|
|
|
|
|
|
__attribute_pure__
|
|
|
|
|
int http_auth_match_rules (const http_auth_require_t *require, const char *user, const char *group, const char *host);
|
|
|
|
|
|
|
|
|
|
typedef struct http_auth_info_t {
|
|
|
|
@ -72,12 +75,14 @@ typedef struct http_auth_scheme_t {
|
|
|
|
|
} http_auth_scheme_t;
|
|
|
|
|
|
|
|
|
|
__attribute_cold__
|
|
|
|
|
__attribute_pure__
|
|
|
|
|
const http_auth_scheme_t * http_auth_scheme_get (const buffer *name);
|
|
|
|
|
|
|
|
|
|
__attribute_cold__
|
|
|
|
|
void http_auth_scheme_set (const http_auth_scheme_t *scheme);
|
|
|
|
|
|
|
|
|
|
__attribute_cold__
|
|
|
|
|
__attribute_pure__
|
|
|
|
|
const http_auth_backend_t * http_auth_backend_get (const buffer *name);
|
|
|
|
|
|
|
|
|
|
__attribute_cold__
|
|
|
|
|