Lines Matching refs:digest
43 DigestParams *digest = &state->digest_params;
49 *dest = digest->nonce;
50 *dest_len = sizeof(digest->nonce);
52 *dest = digest->opaque;
53 *dest_len = sizeof(digest->opaque);
55 *dest = digest->algorithm;
56 *dest_len = sizeof(digest->algorithm);
58 *dest = digest->qop;
59 *dest_len = sizeof(digest->qop);
61 *dest = digest->stale;
62 *dest_len = sizeof(digest->stale);
69 DigestParams *digest = &state->digest_params;
72 *dest = digest->nonce;
73 *dest_len = sizeof(digest->nonce);
136 /* Generate a digest reply, according to RFC 2617. */
141 DigestParams *digest = &state->digest_params;
152 digest->nc++;
153 snprintf(nc, sizeof(nc), "%08x", digest->nc);
171 if (!strcmp(digest->algorithm, "") || !strcmp(digest->algorithm, "MD5")) {
172 } else if (!strcmp(digest->algorithm, "MD5-sess")) {
174 update_md5_strings(md5ctx, A1hash, ":", digest->nonce, ":", cnonce, NULL);
191 update_md5_strings(md5ctx, A1hash, ":", digest->nonce, NULL);
192 if (!strcmp(digest->qop, "auth") || !strcmp(digest->qop, "auth-int")) {
193 update_md5_strings(md5ctx, ":", nc, ":", cnonce, ":", digest->qop, NULL);
202 if (!strcmp(digest->qop, "") || !strcmp(digest->qop, "auth")) {
203 } else if (!strcmp(digest->qop, "auth-int")) {
211 len = strlen(username) + strlen(state->realm) + strlen(digest->nonce) +
212 strlen(uri) + strlen(response) + strlen(digest->algorithm) +
213 strlen(digest->opaque) + strlen(digest->qop) + strlen(cnonce) +
224 av_strlcatf(authstr, len, ",nonce=\"%s\"", digest->nonce);
229 if (digest->algorithm[0])
230 av_strlcatf(authstr, len, ",algorithm=\"%s\"", digest->algorithm);
232 if (digest->opaque[0])
233 av_strlcatf(authstr, len, ",opaque=\"%s\"", digest->opaque);
234 if (digest->qop[0]) {
235 av_strlcatf(authstr, len, ",qop=\"%s\"", digest->qop);