jabberd2  2.2.17
Macros | Functions
util.c File Reference
#include <string.h>
#include "s2s.h"

Go to the source code of this file.

Macros

#define _GNU_SOURCE

Functions

char * s2s_route_key (pool_t p, char *local, char *remote)
 generate a local/remote route key
int s2s_route_key_match (char *local, char *remote, char *rkey, int rkeylen)
 match route key - used for searching route hash
char * s2s_db_key (pool_t p, char *secret, char *remote, char *id)
 generate a dialback key

Macro Definition Documentation

#define _GNU_SOURCE

Definition at line 21 of file util.c.


Function Documentation

char* s2s_route_key ( pool_t  p,
char *  local,
char *  remote 
)

generate a local/remote route key

Definition at line 27 of file util.c.

References pmalloc().

Referenced by _in_packet(), _in_result(), _out_packet_queue(), _out_result(), _out_verify(), and out_packet().

int s2s_route_key_match ( char *  local,
char *  remote,
char *  rkey,
int  rkeylen 
)

match route key - used for searching route hash

Definition at line 44 of file util.c.

Referenced by out_bounce_domain_queues().

char* s2s_db_key ( pool_t  p,
char *  secret,
char *  remote,
char *  id 
)

generate a dialback key

Definition at line 61 of file util.c.

References _sx_debug, pstrdup(), shahash_r(), and ZONE.

Referenced by _in_verify(), and _out_dialback().