Electroneum
val_anchors Struct Reference

#include <val_anchor.h>

Collaboration diagram for val_anchors:

Public Attributes

lock_basic_type lock
 
rbtree_typetree
 
struct trust_anchordlv_anchor
 
struct autr_global_dataautr
 

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.

Definition at line 60 of file val_anchor.h.

Member Data Documentation

◆ autr

struct autr_global_data* val_anchors::autr

Autotrust global data, anchors sorted by next probe time

Definition at line 73 of file val_anchor.h.

◆ dlv_anchor

struct trust_anchor* val_anchors::dlv_anchor

The DLV trust anchor (if one is configured, else NULL)

Definition at line 71 of file val_anchor.h.

◆ lock

lock_basic_type val_anchors::lock

lock on trees

Definition at line 62 of file val_anchor.h.

◆ 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.

Definition at line 69 of file val_anchor.h.


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