|
|
@ -6,6 +6,7 @@ |
|
|
|
#include "buffer.h" |
|
|
|
#include "array.h" |
|
|
|
|
|
|
|
__attribute_cold__ |
|
|
|
void http_auth_dumbdata_reset (void); |
|
|
|
|
|
|
|
typedef enum http_auth_digest_type { |
|
|
@ -37,8 +38,12 @@ typedef struct http_auth_require_t { |
|
|
|
array host; |
|
|
|
} http_auth_require_t; |
|
|
|
|
|
|
|
__attribute_cold__ |
|
|
|
http_auth_require_t * http_auth_require_init (void); |
|
|
|
|
|
|
|
__attribute_cold__ |
|
|
|
void http_auth_require_free (http_auth_require_t *require); |
|
|
|
|
|
|
|
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 { |
|
|
@ -66,9 +71,16 @@ typedef struct http_auth_scheme_t { |
|
|
|
void *p_d; |
|
|
|
} http_auth_scheme_t; |
|
|
|
|
|
|
|
__attribute_cold__ |
|
|
|
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__ |
|
|
|
const http_auth_backend_t * http_auth_backend_get (const buffer *name); |
|
|
|
|
|
|
|
__attribute_cold__ |
|
|
|
void http_auth_backend_set (const http_auth_backend_t *backend); |
|
|
|
|
|
|
|
__attribute_pure__ |
|
|
|