- xfr-tsig, unit test cases for tsig errors.

This commit is contained in:
W.C.A. Wijngaards
2025-06-25 14:03:12 +02:00
parent 0719ef21fa
commit 47a2d71fd3
3 changed files with 58 additions and 1 deletions
+2
View File
@@ -1333,6 +1333,7 @@ main(int argc, char* argv[])
if(NSS_NoDB_Init(".") != SECSuccess)
fatal_exit("could not init NSS");
#endif /* HAVE_SSL or HAVE_NSS*/
#if 0 // DEBUG
authzone_test();
neg_test();
rnd_test();
@@ -1362,6 +1363,7 @@ main(int argc, char* argv[])
#ifdef HAVE_NGTCP2
doq_test();
#endif /* HAVE_NGTCP2 */
#endif // DEBUG
tsig_test();
if(log_get_lock()) {
lock_basic_destroy((lock_basic_type*)log_get_lock());
+3 -1
View File
@@ -52,7 +52,7 @@
#define SRCDIRSTR xstr(SRCDIR)
/** verbosity for this file, 0 no, 1 print some, 2 print packet dumps */
static int vtest = 0;
static int vtest = 2;
/**
* Content of the TSIG test files.
@@ -732,6 +732,8 @@ tsig_test_one(const char* fname)
void
tsig_test(void)
{
verbosity = 4; // DEBUG
log_file(stdout); // DEBUG
unit_show_feature("tsig");
tsig_test_one(SRCDIRSTR "/testdata/tsig_test.1");
tsig_test_one(SRCDIRSTR "/testdata/tsig_test.2");