#include <stdlib.h>
#include <string.h>
#include "../dprint.h"
#include "../trim.h"
#include "parse_privacy.h"
#include "msg_parser.h"

Go to the source code of this file.
Functions | |
| unsigned int | parse_priv_value (char *start, unsigned int max_len, unsigned int *value) |
| int | parse_privacy (struct sip_msg *msg) |
Definition in file parse_privacy.c.
| unsigned int parse_priv_value | ( | char * | start, | |
| unsigned int | max_len, | |||
| unsigned int * | value | |||
| ) |
Parse a privacy value pointed by start that can be at most max_len long.
Definition at line 45 of file parse_privacy.c.
References len, LM_ERR, PRIVACY_CRITICAL, PRIVACY_HEADER, PRIVACY_HISTORY, PRIVACY_ID, PRIVACY_NONE, PRIVACY_SESSION, and PRIVACY_USER.
Referenced by fixup_privacy(), and parse_privacy().
| int parse_privacy | ( | struct sip_msg * | msg | ) |
This method is used to parse Privacy HF body, which consist of comma separated list of priv-values. After parsing, msg->privacy->parsed contains enum bits of privacy values defined in parse_privacy.h.
Definition at line 156 of file parse_privacy.c.
References hdr_field::body, HDR_PRIVACY_F, _str::len, len, LM_ERR, parse_headers(), parse_priv_value(), hdr_field::parsed, sip_msg::privacy, PRIVACY_NONE, _str::s, and trim_leading().
Referenced by is_privacy_f().
1.5.6