MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / parse_qop

Function parse_qop

parser/digest/digest_parser.c:222–238  ·  view source on GitHub ↗

* Parse qop parameter body */

Source from the content-addressed store, hash-verified

220 * Parse qop parameter body
221 */
222static inline void parse_qop(struct qp* _q)
223{
224 str s;
225
226 s.s = _q->qop_str.s;
227 s.len = _q->qop_str.len;
228
229 trim(&s);
230
231 if (turbo_strcasematch(&s, QOP_AUTH_STR, QOP_AUTH_STR_LEN)) {
232 _q->qop_parsed = QOP_AUTH_D;
233 } else if (turbo_strcasematch(&s, QOP_AUTHINT_STR, QOP_AUTHINT_STR_LEN)) {
234 _q->qop_parsed = QOP_AUTHINT_D;
235 } else {
236 _q->qop_parsed = QOP_OTHER_D;
237 }
238}
239
240#define CASE_ALG(alg, sptr) \
241 case ALG_##alg##_STR_LEN: \

Callers 1

parse_digest_paramsFunction · 0.85

Calls 1

trimFunction · 0.85

Tested by

no test coverage detected