#include "digest_parser.h"#include "../../trim.h"#include <string.h>#include "param_parser.h"

Go to the source code of this file.
Defines | |
| #define | ALG_MD5_STR "MD5" |
| #define | ALG_MD5_STR_LEN 3 |
| #define | ALG_MD5SESS_STR "MD5-sess" |
| #define | ALG_MD5SESS_STR_LEN 8 |
| #define | DIG_LEN 6 |
| #define | DIGEST_SCHEME "digest" |
| #define | QOP_AUTH_STR "auth" |
| #define | QOP_AUTH_STR_LEN 4 |
| #define | QOP_AUTHINT_STR "auth-int" |
| #define | QOP_AUTHINT_STR_LEN 8 |
Functions | |
| void | init_dig_cred (dig_cred_t *_c) |
| static void | parse_algorithm (struct algorithm *_a) |
| int | parse_digest_cred (str *_s, dig_cred_t *_c) |
| static int | parse_digest_param (str *_s, dig_cred_t *_c) |
| static int | parse_digest_params (str *_s, dig_cred_t *_c) |
| static void | parse_qop (struct qp *_q) |
| static int | parse_quoted (str *_s, str *_r) |
| static int | parse_token (str *_s, str *_r) |
| static void | parse_username (struct username *_u) |
| #define ALG_MD5_STR "MD5" |
| #define ALG_MD5_STR_LEN 3 |
| #define ALG_MD5SESS_STR "MD5-sess" |
| #define ALG_MD5SESS_STR_LEN 8 |
| #define DIG_LEN 6 |
| #define DIGEST_SCHEME "digest" |
| #define QOP_AUTH_STR "auth" |
| #define QOP_AUTH_STR_LEN 4 |
| #define QOP_AUTHINT_STR "auth-int" |
| #define QOP_AUTHINT_STR_LEN 8 |
| void init_dig_cred | ( | dig_cred_t * | _c | ) |
| static void parse_algorithm | ( | struct algorithm * | _a | ) | [inline, static] |
Definition at line 241 of file digest_parser.c.
References ALG_MD5, ALG_MD5_STR, ALG_MD5_STR_LEN, ALG_MD5SESS, ALG_MD5SESS_STR, ALG_MD5SESS_STR_LEN, ALG_OTHER, algorithm::alg_parsed, algorithm::alg_str, _str::len, _str::s, s, and trim().
Referenced by parse_digest_params().
| int parse_digest_cred | ( | str * | _s, | |
| dig_cred_t * | _c | |||
| ) |
Definition at line 335 of file digest_parser.c.
References DIG_LEN, DIGEST_SCHEME, _str::len, parse_digest_params(), _str::s, and trim_leading().
Referenced by parse_credentials().
| static int parse_digest_param | ( | str * | _s, | |
| dig_cred_t * | _c | |||
| ) | [inline, static] |
Definition at line 158 of file digest_parser.c.
References dig_cred::alg, algorithm::alg_str, dig_cred::cnonce, _str::len, dig_cred::nc, dig_cred::nonce, dig_cred::opaque, PAR_ALGORITHM, PAR_CNONCE, PAR_NC, PAR_NONCE, PAR_OPAQUE, PAR_OTHER, PAR_QOP, PAR_REALM, PAR_RESPONSE, PAR_URI, PAR_USERNAME, parse_param_name(), parse_quoted(), parse_token(), dig_cred::qop, qp::qop_str, dig_cred::realm, dig_cred::response, _str::s, trim_leading(), dig_cred::uri, dig_cred::username, and username::whole.
Referenced by parse_digest_params().
| static int parse_digest_params | ( | str * | _s, | |
| dig_cred_t * | _c | |||
| ) | [inline, static] |
Definition at line 285 of file digest_parser.c.
References dig_cred::alg, algorithm::alg_str, _str::len, parse_algorithm(), parse_digest_param(), parse_qop(), parse_username(), dig_cred::qop, qp::qop_str, _str::s, trim_leading(), dig_cred::username, and username::whole.
Referenced by parse_digest_cred().
| static void parse_qop | ( | struct qp * | _q | ) | [inline, static] |
Definition at line 217 of file digest_parser.c.
References _str::len, QOP_AUTH, QOP_AUTH_STR, QOP_AUTH_STR_LEN, QOP_AUTHINT, QOP_AUTHINT_STR, QOP_AUTHINT_STR_LEN, QOP_OTHER, qp::qop_parsed, qp::qop_str, _str::s, s, and trim().
Referenced by parse_digest_params().
Definition at line 59 of file digest_parser.c.
References _str::len, and _str::s.
Referenced by parse_digest_param().
Definition at line 105 of file digest_parser.c.
References _str::len, and _str::s.
Referenced by parse_digest_param().
| static void parse_username | ( | struct username * | _u | ) | [inline, static] |
Definition at line 265 of file digest_parser.c.
References username::domain, _str::len, _str::s, username::user, and username::whole.
Referenced by parse_digest_params().
1.5.6