jabberd2  2.7.0
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, const char *local, const char *remote)
 generate a local/remote route key More...
 
int s2s_route_key_match (char *local, const char *remote, const char *rkey, int rkeylen)
 match route key - used for searching route hash More...
 
char * s2s_db_key (pool_t p, const char *secret, const char *remote, const char *id)
 generate a dialback key More...
 

Macro Definition Documentation

◆ _GNU_SOURCE

#define _GNU_SOURCE

Definition at line 21 of file util.c.

Function Documentation

◆ s2s_route_key()

char* s2s_route_key ( pool_t  p,
const char *  local,
const 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().

◆ s2s_route_key_match()

int s2s_route_key_match ( char *  local,
const char *  remote,
const 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().

◆ s2s_db_key()

char* s2s_db_key ( pool_t  p,
const char *  secret,
const char *  remote,
const 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().