[Git][NTPsec/ntpsec][master] Sigh. Fix test code for new cookie-key logic.

Hal Murray (@hal.murray) gitlab at mg.gitlab.com
Sun Dec 18 07:45:01 UTC 2022



Hal Murray pushed to branch master at NTPsec / ntpsec


Commits:
62cb02f7 by Hal Murray at 2022-12-17T23:44:03-08:00
Sigh.  Fix test code for new cookie-key logic.

- - - - -


1 changed file:

- tests/ntpd/nts_cookie.c


Changes:

=====================================
tests/ntpd/nts_cookie.c
=====================================
@@ -61,6 +61,8 @@ TEST(nts_cookie, nts_make_unpack_cookie) {
 	uint16_t aead; /* retrieved on unpack */
 	/* Init for cookie_ctx */
 	nts_cookie_init();
+	nts_nKeys = 0;
+	nts_make_cookie_key();
 	/* Test */
 	len = nts_make_cookie(cookie, AEAD_AES_SIV_CMAC_256, c2s, s2c, sizeof(c2s));
 	TEST_ASSERT_EQUAL(72, len);



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/-/commit/62cb02f74d19933a1e417b46da960178deb820ef

-- 
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/-/commit/62cb02f74d19933a1e417b46da960178deb820ef
You're receiving this email because of your account on gitlab.com.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20221218/29bb8737/attachment.htm>


More information about the vc mailing list