X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fhttpauth.h;h=62dd25e637fd538350670d00d8dd9558a06a5b62;hb=c0b47d1914a19abacdf1edf081cbf07485952920;hp=ebab3fca297fe02b37eecd6e1c10879ebcb912b8;hpb=8e31dbc1dcb56d40bcc1dd45840aaef0d37bae51;p=ffmpeg diff --git a/libavformat/httpauth.h b/libavformat/httpauth.h index ebab3fca297..62dd25e637f 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,