• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/minidlna/ffmpeg-2.3.4/libavformat/

Lines Matching defs:state

31 static void handle_basic_params(HTTPAuthState *state, const char *key,
35 *dest = state->realm;
36 *dest_len = sizeof(state->realm);
40 static void handle_digest_params(HTTPAuthState *state, const char *key,
43 DigestParams *digest = &state->digest_params;
46 *dest = state->realm;
47 *dest_len = sizeof(state->realm);
66 static void handle_digest_update(HTTPAuthState *state, const char *key,
69 DigestParams *digest = &state->digest_params;
90 void ff_http_auth_handle_header(HTTPAuthState *state, const char *key,
96 state->auth_type <= HTTP_AUTH_BASIC) {
97 state->auth_type = HTTP_AUTH_BASIC;
98 state->realm[0] = 0;
99 state->stale = 0;
101 state);
103 state->auth_type <= HTTP_AUTH_DIGEST) {
104 state->auth_type = HTTP_AUTH_DIGEST;
105 memset(&state->digest_params, 0, sizeof(DigestParams));
106 state->realm[0] = 0;
107 state->stale = 0;
109 state);
110 choose_qop(state->digest_params.qop,
111 sizeof(state->digest_params.qop));
112 if (!av_strcasecmp(state->digest_params.stale, "true"))
113 state->stale = 1;
117 state);
137 static char *make_digest_auth(HTTPAuthState *state, const char *username,
141 DigestParams *digest = &state->digest_params;
166 update_md5_strings(md5ctx, username, ":", state->realm, ":", password, NULL);
211 len = strlen(username) + strlen(state->realm) + strlen(digest->nonce) +
223 av_strlcatf(authstr, len, ",realm=\"%s\"", state->realm);
245 char *ff_http_auth_create_response(HTTPAuthState *state, const char *auth,
252 state->stale = 0;
256 if (state->auth_type == HTTP_AUTH_BASIC) {
277 } else if (state->auth_type == HTTP_AUTH_DIGEST) {
285 authstr = make_digest_auth(state, username, password, path, method);