unbound: testcode/unitanchor.c File Reference

unbound 0.1

Functions
unitanchor.c File Reference

Calls trust anchor unit tests. More...

`#include "config.h"`
`#include "util/log.h"`
`#include "util/data/dname.h"`
`#include "testcode/unitmain.h"`
`#include "validator/val_anchor.h"`
`#include "sldns/sbuffer.h"`
`#include "sldns/rrdef.h"`

## Functions
static void | test_anchor_empty (struct val_anchors *a)
| test empty set
static void | test_anchor_one (sldns_buffer *buff, struct val_anchors *a)
| test set of one anchor
static void | test_anchors (sldns_buffer *buff, struct val_anchors *a)
| test with several anchors
void | anchors_test (void)
| unit test trust anchor storage functions

## Detailed Description

Calls trust anchor unit tests.

Exits with code 1 on a failure.