unbound: ipsecmod/ipsecmod.h File Reference

unbound 0.1

Data Structures | Functions
ipsecmod.h File Reference

This file contains a module that facilitates opportunistic IPsec. More...

`#include "util/module.h"`
`#include "util/rbtree.h"`

## Data Structures
struct | ipsecmod_env
| The global variable environment contents for the ipsecmod Shared between threads, this represents long term information. More...
struct | ipsecmod_qstate
| Per query state for the ipsecmod module. More...

## Functions
int | ipsecmod_init (struct module_env *env, int id)
| Init the ipsecmod module.
void | ipsecmod_deinit (struct module_env *env, int id)
| Deinit the ipsecmod module.
void | ipsecmod_operate (struct module_qstate *qstate, enum module_ev event, int id, struct outbound_entry *outbound)
| Operate on an event on a query (in qstate).
void | ipsecmod_inform_super (struct module_qstate *qstate, int id, struct module_qstate *super)
| Subordinate query done, inform this super request of its conclusion.
void | ipsecmod_clear (struct module_qstate *qstate, int id)
| clear the ipsecmod query-specific contents out of qstate
size_t | ipsecmod_get_mem (struct module_env *env, int id)
| return memory estimate for the ipsecmod module
struct module_func_block * | ipsecmod_get_funcblock (void)
| Get the function block with pointers to the ipsecmod functions.

## Detailed Description

This file contains a module that facilitates opportunistic IPsec.

It does so by also querying for the IPSECKEY for A/AAAA queries and calling a configurable hook (eg. signaling an IKE daemon) before replying.

## Function Documentation

## ◆ ipsecmod_get_funcblock()

struct module_func_block * ipsecmod_get_funcblock | ( | void |  | ) |

Get the function block with pointers to the ipsecmod functions.

Returns
  the function block for "ipsecmod".

Referenced by module_funcs_avail().