]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
fixup! Fix code to generate the test signatues.
authorMark Andrews <marka@isc.org>
Fri, 21 Feb 2020 07:10:44 +0000 (18:10 +1100)
committerMark Andrews <marka@isc.org>
Fri, 21 Feb 2020 07:10:44 +0000 (18:10 +1100)
lib/dns/tests/dst_test.c

index d21c5ade053fe8922a951a24b3e7ced51e987bc0..8e943cd73f4d1b1a2f4b5ddf1bdb1977ddf67a2d 100644 (file)
@@ -26,6 +26,7 @@
 #include <cmocka.h>
 
 #include <isc/file.h>
+#include <isc/hex.h>
 #include <isc/print.h>
 #include <isc/stdio.h>
 #include <isc/string.h>
@@ -218,8 +219,9 @@ check_sig(const char *datapath, const char *sigpath, const char *keyname,
                isc_result_t result2;
 
                dst_context_destroy(&ctx);
-               result2 = dst_context_create(
-                       key, dt_mctx, DNS_LOGCATEGORY_GENERAL, false, 0, &ctx);
+               result2 = dst_context_create3(key, mctx,
+                                             DNS_LOGCATEGORY_GENERAL, false,
+                                             &ctx);
                assert_int_equal(result2, ISC_R_SUCCESS);
 
                result2 = dst_context_adddata(ctx, &datareg);