unitzonemd.c File Reference
#include "config.h"
#include <ctype.h>
#include "util/log.h"
#include "testcode/unitmain.h"
#include "sldns/str2wire.h"
#include "services/authzone.h"
#include "util/data/dname.h"
#include "util/regional.h"
#include "validator/val_anchor.h"


#define xstr(s)   str(s)
#define str(s)   #s
#define SRCDIRSTR   xstr(SRCDIR)


struct auth_zoneauthtest_addzone (struct auth_zones *az, const char *name, char *fname)
 Add zone from file for testing.
static void zonemd_generate_test (const char *zname, char *zfile, int scheme, int hashalgo, const char *digest)
 zonemd unit test, generate a zonemd digest and check if correct
static void zonemd_generate_tests (void)
 loop over files and test generated zonemd digest
static void zonemd_check_test (void)
 test the zonemd check routine
static void zonemd_verify_test (char *zname, char *zfile, char *tastr, char *date_override, char *result_wanted)
 zonemd test verify
static void zonemd_verify_tests (void)
 zonemd test verify suite
void zonemd_test (void)
 zonemd unit tests More...

Detailed Description

Unit tests for ZONEMD functionality.

Function Documentation

◆ zonemd_test()

void zonemd_test ( void  )

zonemd unit tests

unit test for zonemd functions

References unit_show_feature(), zonemd_check_test(), zonemd_generate_tests(), and zonemd_verify_tests().