diff options
Diffstat (limited to 'daemon/bd.h')
-rw-r--r-- | daemon/bd.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/daemon/bd.h b/daemon/bd.h index a42af68..1697cfb 100644 --- a/daemon/bd.h +++ b/daemon/bd.h @@ -39,8 +39,8 @@ * HA_OK: completed successfully * HA_FAILED: error retrieving hash (should have logged error) */ -typedef int (*bd_validate_digest)(ha_request_t* rq, - const char* user, digest_context_t* dg); +typedef int (*bd_validate_digest)(ha_request_t* rq, const char* user, + digest_context_t* dg, char ***groups); /* * A callback for validating a given user's password. @@ -50,8 +50,8 @@ typedef int (*bd_validate_digest)(ha_request_t* rq, * HA_FALSE: invalid password * HA_FAILED: error validating (should have logged error) */ -typedef int (*bd_validate_basic)(ha_request_t* rq, - const char* user, const char* password); +typedef int (*bd_validate_basic) (ha_request_t *rq, const char *user, + const char *password, char ***groups); /* * Escapes a value for sending to 'server' @@ -71,6 +71,7 @@ typedef struct bd_context /* Require locking --------------------------------------*/ hsh_t* cache; /* Some cached records or basic */ + unsigned int cache_max; /* Maximum number of records in cache */ } bd_context_t; |