ipsecmod-whitelist.h File Reference

Keep track of the white listed domains for ipsecmod. More...

Functions

int ipsecmod_whitelist_apply_cfg (struct ipsecmod_env *ie, struct config_file *cfg)
 Process ipsecmod_whitelist config. More...
 
void ipsecmod_whitelist_delete (rbtree_type *whitelist)
 Delete the ipsecmod whitelist. More...
 
int ipsecmod_domain_is_whitelisted (struct ipsecmod_env *ie, uint8_t *dname, size_t dname_len, uint16_t qclass)
 See if a domain is whitelisted. More...
 
size_t ipsecmod_whitelist_get_mem (rbtree_type *whitelist)
 Get memory used by ipsecmod whitelist. More...
 

Detailed Description

Keep track of the white listed domains for ipsecmod.

Function Documentation

◆ ipsecmod_whitelist_apply_cfg()

int ipsecmod_whitelist_apply_cfg ( struct ipsecmod_env ie,
struct config_file cfg 
)

Process ipsecmod_whitelist config.

Parameters
ieipsecmod environment.
cfgconfig options.
Returns
0 on error.

◆ ipsecmod_whitelist_delete()

void ipsecmod_whitelist_delete ( rbtree_type whitelist)

Delete the ipsecmod whitelist.

Parameters
whitelistipsecmod whitelist.

◆ ipsecmod_domain_is_whitelisted()

int ipsecmod_domain_is_whitelisted ( struct ipsecmod_env ie,
uint8_t *  dname,
size_t  dname_len,
uint16_t  qclass 
)

See if a domain is whitelisted.

Parameters
ieipsecmod environment.
dnamedomain name to check.
dname_lenlength of domain name.
qclassquery CLASS.
Returns
: true if the domain is whitelisted for the ipsecmod.

◆ ipsecmod_whitelist_get_mem()

size_t ipsecmod_whitelist_get_mem ( rbtree_type whitelist)

Get memory used by ipsecmod whitelist.

Parameters
whiteliststructure for domain storage.
Returns
bytes in use.