unbound: val_anchors Struct Reference

unbound 0.1

Data Fields
val_anchors Struct Reference

Trust anchor store. More...

`#include <val_anchor.h>`

## Data Fields
lock_basic_type | lock
| lock on trees
rbtree_type * | tree
| Anchors are store in this tree.
struct autr_global_data * | autr
| Autotrust global data, anchors sorted by next probe time.

## Detailed Description

Trust anchor store.

The tree must be locked, while no other locks (from trustanchors) are held. And then an anchor searched for. Which can be locked or deleted. Then the tree can be unlocked again. This means you have to release the lock on a trust anchor and look it up again to delete it.

## Field Documentation

## ◆ tree

rbtree_type* val_anchors::tree

Anchors are store in this tree.

Sort order is chosen, so that dnames are in nsec-like order. A lookup on class, name will return an exact match of the closest match, with the ancestor needed. contents of type trust_anchor.

Referenced by anchor_find(), anchor_new_ta(), anchors_add_insecure(), anchors_assemble_rrsets(), anchors_create(), anchors_delete(), anchors_delete_insecure(), anchors_get_mem(), anchors_init_parents_locked(), anchors_lookup(), autr_debug_print(), autr_tp_create(), autr_tp_remove(), chaos_trustanchor(), and set_next_probe().

The documentation for this struct was generated from the following file:

- validator/val_anchor.h