#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include "../../mem/mem.h"
#include "../../dprint.h"
#include "../../ut.h"
#include "../../data_lump_rpl.h"
#include "utils_func.h"
#include "event_list.h"
#include "presence.h"

Go to the source code of this file.
Defines | |
| #define | BAD -1 |
| #define | DECODE64(c) (isascii(c) ? base64val[c] : BAD) |
Functions | |
| int | a_to_i (char *s, int len) |
| int | send_error_reply (struct sip_msg *msg, int reply_code, str reply_str) |
| void | to64frombits (unsigned char *out, const unsigned char *in, int inlen) |
Variables | |
| static const char | base64digits [] |
| static const char | base64val [] |
Definition in file utils_func.c.
| #define BAD -1 |
Definition at line 51 of file utils_func.c.
| #define DECODE64 | ( | c | ) | (isascii(c) ? base64val[c] : BAD) |
Definition at line 62 of file utils_func.c.
| int a_to_i | ( | char * | s, | |
| int | len | |||
| ) |
Definition at line 93 of file utils_func.c.
Definition at line 103 of file utils_func.c.
References add_lump_rpl(), BAD_EVENT_CODE, CRLF, CRLF_LEN, evlist::ev_count, evlist::events, EvList, _str::len, LM_ERR, LUMP_RPL_HDR, pres_ev::name, pres_ev::next, _str::s, sl_binds::send_reply, and slb.
Referenced by handle_publish(), and handle_subscribe().
| void to64frombits | ( | unsigned char * | out, | |
| const unsigned char * | in, | |||
| int | inlen | |||
| ) |
Definition at line 64 of file utils_func.c.
References base64digits.
Referenced by add_waiting_watchers().
const char base64digits[] [static] |
Initial value:
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"
Definition at line 48 of file utils_func.c.
Referenced by to64frombits().
const char base64val[] [static] |
Definition at line 52 of file utils_func.c.
1.5.6