unbound 0.1
|
Trust anchor store. More...
#include <val_anchor.h>
Data Fields | |
lock_basic_t | lock |
lock on trees | |
struct regional * | region |
region where trust anchors are allocated. | |
rbtree_t * | tree |
Anchors are store in this tree. | |
struct trust_anchor * | dlv_anchor |
The DLV trust anchor (if one is configured, else NULL) | |
struct autr_global_data * | autr |
Autotrust global data, anchors sorted by next probe time. |
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.
struct regional* val_anchors::region |
region where trust anchors are allocated.
Autotrust anchors are malloced so they can be updated.
Referenced by anchor_new_ta(), anchor_new_ta_key(), anchors_assemble(), anchors_create(), anchors_delete(), and anchors_get_mem().
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_assemble_rrsets(), anchors_create(), anchors_delete(), anchors_init_parents_locked(), anchors_lookup(), autr_debug_print(), autr_tp_create(), autr_tp_remove(), and set_next_probe().