| 75 | } |
| 76 | |
| 77 | static void choose_qop(char *qop, int size) |
| 78 | { |
| 79 | char *ptr = strstr(qop, "auth"); |
| 80 | char *end = ptr + strlen("auth"); |
| 81 | |
| 82 | if (ptr && (!*end || av_isspace(*end) || *end == ',') && |
| 83 | (ptr == qop || av_isspace(ptr[-1]) || ptr[-1] == ',')) { |
| 84 | av_strlcpy(qop, "auth", size); |
| 85 | } else { |
| 86 | qop[0] = 0; |
| 87 | } |
| 88 | } |
| 89 | |
| 90 | void ff_http_auth_handle_header(HTTPAuthState *state, const char *key, |
| 91 | const char *value) |
no test coverage detected