From de44fe7893da8d8c9903f1a7268fa6fe03446d36 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Wed, 11 Jun 2008 22:03:08 +0000 Subject: Allow better migration of live digest sessions between httpauth daemons by using the 'stale' flag when things seem out of date. --- daemon/digest.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'daemon/digest.h') diff --git a/daemon/digest.h b/daemon/digest.h index 7a0f59c..fb9bfd7 100644 --- a/daemon/digest.h +++ b/daemon/digest.h @@ -73,8 +73,8 @@ const char* digest_challenge(ha_buffer_t* buf, const char* nonce_str, * Validate digest headers once they've been parsed. Note that it's up * to the caller to validate the 'username' and 'nonce' fields. */ -int digest_check(digest_context_t* dg, const ha_context_t* opts, ha_buffer_t* buf); -int digest_pre_check(digest_context_t* dg, const ha_context_t* opts, ha_buffer_t* buf); +int digest_check(digest_context_t* dg, const ha_context_t* opts, ha_buffer_t* buf, int *stale); +int digest_pre_check(digest_context_t* dg, const ha_context_t* opts, ha_buffer_t* buf, int *stale); /* This assumes a digest_context that's been prechecked successfully */ int digest_complete_check(digest_context_t* dg, const ha_context_t* opts, ha_buffer_t* buf); -- cgit v1.2.3