From ca147a147d0ab5d2db24cc41e4c94d3decdb36d9 Mon Sep 17 00:00:00 2001 From: "W.C.A. Wijngaards" Date: Fri, 27 Jun 2025 09:24:51 +0200 Subject: [PATCH] - xfr-tsig, unit test for tsig_sign_shared and tsig_verify_shared. --- testcode/unittsig.c | 126 +++++++++++++++++++++++++ testdata/tsig_test.4 | 12 +++ util/tsig.c | 214 +------------------------------------------ util/tsig.h | 10 -- 4 files changed, 141 insertions(+), 221 deletions(-) diff --git a/testcode/unittsig.c b/testcode/unittsig.c index 59d3cf3d7..52f9fdcbe 100644 --- a/testcode/unittsig.c +++ b/testcode/unittsig.c @@ -44,6 +44,7 @@ #include "testcode/unitmain.h" #include "sldns/parseutil.h" #include "sldns/sbuffer.h" +#include "sldns/str2wire.h" #include "sldns/wire2str.h" #include @@ -89,6 +90,17 @@ static int vtest = 0; * If no tsig data is returned, keyname '.', and 0 and 0 are the * tsigerr and tsigothertime values that are checked. * + * tsig-sign-shared