diff options
author | Martin Storsjö <martin@martin.st> | 2012-03-12 13:59:36 +0200 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2012-03-13 10:36:17 +0200 |
commit | 8a3360d18ab148fad6b32b4a8e710f84cd9a45d2 (patch) | |
tree | ad1ca0bb55e9dd2b41dd9839dab89df7d13c3316 /libavformat/httpauth.h | |
parent | 7103c8350a1cb0c9fa574d9ccaa09ce5f53dbfe5 (diff) | |
download | ffmpeg-8a3360d18ab148fad6b32b4a8e710f84cd9a45d2.tar.gz |
httpauth: Parse the stale field in digest auth
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/httpauth.h')
-rw-r--r-- | libavformat/httpauth.h | 7 |
1 files changed, 7 insertions, 0 deletions
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, |