Functions

tls_cfg.c File Reference

SIP-router TLS support :: tls runtime configurationModule: SIP-router TLS support. More...

#include "tls_cfg.h"
#include "../../config.h"
#include "../../str.h"
#include "../../ut.h"
#include "../../pt.h"
#include "../../mem/shm_mem.h"
Include dependency graph for tls_cfg.c:

Go to the source code of this file.

Functions


Detailed Description

Definition in file tls_cfg.c.


Function Documentation

static int fix_initial_pathname ( str path,
char *  def 
) [static]

to be used on start-up, with pkg_alloc'ed path names (path->s).

Parameters:
path - path to be fixed. If it starts with '.' or '/' is left alone (forced "relative" or "absolute" path). Otherwise the path is considered to be relative to the main config file directory (e.g. for /etc/ser/ser.cfg => /etc/ser/<path>).
def - default value used if path->s is empty (path->s == 0).
Returns:
0 on success, -1 on error.

Definition at line 230 of file tls_cfg.c.

References get_abs_pathname(), _str::len, and _str::s.

Referenced by fix_tls_cfg().

Here is the call graph for this function:

Here is the caller graph for this function:

static int fix_rel_pathname ( void *  cfg_h,
str gname,
str name,
void **  val 
) [static]

Definition at line 104 of file tls_cfg.c.

References get_abs_pathname(), _str::len, MAX_PATH_SIZE, and _str::s.

Here is the call graph for this function:

int fix_tls_cfg ( struct cfg_group_tls *  cfg  ) 
Returns:
< 0 on error, 0 on success

Definition at line 256 of file tls_cfg.c.

References fix_initial_pathname(), S_TO_TICKS, TLS_CA_FILE, TLS_CERT_FILE, TLS_CRL_FILE, and TLS_PKEY_FILE.

Here is the call graph for this function: