From 8a3360d18ab148fad6b32b4a8e710f84cd9a45d2 Mon Sep 17 00:00:00 2001 From: Martin Storsjö Date: Mon, 12 Mar 2012 13:59:36 +0200 Subject: httpauth: Parse the stale field in digest auth MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Martin Storsjö --- libavformat/httpauth.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'libavformat/httpauth.h') diff --git a/libavformat/httpauth.h b/libavformat/httpauth.h index d2a4a55305..bd0644906a 100644 --- a/libavformat/httpauth.h +++ b/libavformat/httpauth.h @@ -41,6 +41,9 @@ typedef struct { char opaque[300]; /**< A server-specified string that should be * included in authentication responses, not * included in the actual digest calculation. */ + char stale[10]; /**< The server indicated that the auth was ok, + * but needs to be redone with a new, non-stale + * nonce. */ int nc; /**< Nonce count, the number of earlier replies * where this particular nonce has been used. */ } DigestParams; @@ -62,6 +65,10 @@ typedef struct { * The parameters specifiec to digest authentication. */ DigestParams digest_params; + /** + * Auth ok, but needs to be resent with a new nonce. + */ + int stale; } HTTPAuthState; void ff_http_auth_handle_header(HTTPAuthState *state, const char *key, -- cgit v1.2.3