jabberd2
2.3.2
|
Go to the source code of this file.
Functions | |
char * | j_strdup (const char *str) |
More... | |
char * | j_strcat (char *dest, const char *txt) |
int | j_strcmp (const char *a, const char *b) |
int | j_strcasecmp (const char *a, const char *b) |
int | j_strncmp (const char *a, const char *b, int i) |
int | j_strncasecmp (const char *a, const char *b, int i) |
int | j_strlen (const char *a) |
int | j_atoi (const char *a, int def) |
char * | j_attr (const char **atts, const char *attr) |
char * | j_strnchr (const char *s, int c, int n) |
like strchr, but only searches n chars More... | |
spool | spool_new (pool_t p) |
static void | _spool_add (spool s, const char *goodstr) |
void | spool_add (spool s, const char *str) |
void | spool_escape (spool s, const char *raw, int len) |
void | spooler (spool s,...) |
const char * | spool_print (spool s) |
const char * | spools (pool_t p,...) |
convenience :) More... | |
char * | strunescape (pool_t p, char *buf) |
char * | strescape (pool_t p, const char *buf, int len) |
void | shahash_r (const char *str, char hashbuf[41]) |
convenience (originally by Thomas Muldowney) More... | |
void | shahash_raw (const char *str, unsigned char hashval[20]) |
char* j_strcat | ( | char * | dest, |
const char * | txt | ||
) |
Definition at line 32 of file str.c.
Referenced by spool_print().
int j_strcmp | ( | const char * | a, |
const char * | b | ||
) |
int j_atoi | ( | const char * | a, |
int | def | ||
) |
Definition at line 87 of file str.c.
Referenced by _access_calc_netsize(), _c2s_config_expand(), _c2s_hosts_expand(), _roster_in_sess(), _router_config_expand(), _s2s_config_expand(), _s2s_hosts_expand(), _sm_config_expand(), and module_init().
char* j_attr | ( | const char ** | atts, |
const char * | attr | ||
) |
Definition at line 95 of file str.c.
References j_strcmp().
Referenced by _c2s_config_expand(), _c2s_hosts_expand(), _router_config_expand(), _s2s_hosts_expand(), _sm_config_expand(), config_get_attr(), and JABBER_MAIN().
char* j_strnchr | ( | const char * | s, |
int | c, | ||
int | n | ||
) |
Definition at line 119 of file str.c.
References spool_struct::first, spool_struct::last, spool_struct::len, spool_struct::p, and pmalloc().
Referenced by spools().
|
static |
Definition at line 131 of file str.c.
References spool_node::c, spool_struct::first, spool_struct::last, spool_struct::len, spool_node::next, spool_struct::p, and pmalloc().
Referenced by spool_add(), and spool_escape().
void spool_add | ( | spool | s, |
const char * | str | ||
) |
Definition at line 147 of file str.c.
References _spool_add(), spool_struct::p, and pstrdup().
void spool_escape | ( | spool | s, |
const char * | raw, | ||
int | len | ||
) |
Definition at line 155 of file str.c.
References _spool_add(), spool_struct::p, and strescape().
void spooler | ( | spool | s, |
... | |||
) |
Definition at line 163 of file str.c.
References spool_add().
const char* spool_print | ( | spool | s | ) |
Definition at line 186 of file str.c.
References spool_node::c, spool_struct::first, j_strcat(), spool_struct::len, spool_node::next, spool_struct::p, and pmalloc().
Referenced by spools().
const char* spools | ( | pool_t | p, |
... | |||
) |
convenience :)
Definition at line 209 of file str.c.
References spool_add(), spool_new(), and spool_print().
char* strunescape | ( | pool_t | p, |
char * | buf | ||
) |
char* strescape | ( | pool_t | p, |
const char * | buf, | ||
int | len | ||
) |
void shahash_r | ( | const char * | str, |
char | hashbuf[41] | ||
) |
convenience (originally by Thomas Muldowney)
old convenience function, now in str.c
Definition at line 358 of file str.c.
References hex_from_raw(), and shahash_raw().
Referenced by _authreg_auth_set(), _pbx_process_command(), _router_process_handshake(), _sm_generate_id(), jid_random_part(), and s2s_db_key().
void shahash_raw | ( | const char * | str, |
unsigned char | hashval[20] | ||
) |
Definition at line 364 of file str.c.
References sha1_hash().
Referenced by _router_process_route(), and shahash_r().