MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / choose_qop

Function choose_qop

libavformat/httpauth.c:77–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75}
76
77static 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
90void ff_http_auth_handle_header(HTTPAuthState *state, const char *key,
91 const char *value)

Callers 1

Calls 2

av_isspaceFunction · 0.85
av_strlcpyFunction · 0.85

Tested by

no test coverage detected