unbound: ipsecmod/ipsecmod-whitelist.h File Reference

unbound 0.1

Functions
ipsecmod-whitelist.h File Reference

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

`#include "util/storage/dnstree.h"`

## Functions
int | ipsecmod_whitelist_apply_cfg (struct ipsecmod_env *ie, struct config_file *cfg)
| Process ipsecmod_whitelist config.
void | ipsecmod_whitelist_delete (rbtree_type *whitelist)
| Delete the ipsecmod whitelist.
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.
size_t | ipsecmod_whitelist_get_mem (rbtree_type *whitelist)
| Get memory used by ipsecmod whitelist.

## 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

  ie | ipsecmod environment.
  cfg | config options.

Returns
  0 on error.

## ◆ ipsecmod_whitelist_delete()

void ipsecmod_whitelist_delete | ( | rbtree_type * | whitelist | ) |

Delete the ipsecmod whitelist.

Parameters

  whitelist | ipsecmod 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

  ie | ipsecmod environment.
  dname | domain name to check.
  dname_len | length of domain name.
  qclass | query 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

  whitelist | structure for domain storage.

Returns
  bytes in use.