[Git][NTPsec/ntpsec][master] No combination of old-style auth with NTS.

Eric S. Raymond gitlab at mg.gitlab.com
Thu Jan 31 20:11:21 UTC 2019


Eric S. Raymond pushed to branch master at NTPsec / ntpsec


Commits:
e7321b4f by Eric S. Raymond at 2019-01-31T20:10:53Z
No combination of old-style auth with NTS.

- - - - -


1 changed file:

- ntpd/ntp_proto.c


Changes:

=====================================
ntpd/ntp_proto.c
=====================================
@@ -2300,9 +2300,11 @@ fast_xmit(
 	 * must be authenticated. For symmetric key cryptography, use
 	 * the predefined and trusted symmetric keys to generate the
 	 * cryptosum.
+	 *
+	 * No nts_decorate() call before the sendpkt() because we don't expect
+	 * to ever combine old-style auth with NTS.
 	 */
 	get_systime(&xmt_tx);
-	sendlen += nts_decorate(xpkt.exten, sizeof(xpkt.exten), NULL);
 	sendlen += (size_t)authencrypt(auth, (uint32_t *)&xpkt, (int)sendlen);
 	sendpkt(&rbufp->recv_srcadr, rbufp->dstadr, &xpkt, (int)sendlen);
 	get_systime(&xmt_ty);



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/e7321b4fdb2b0a5b856e1965496d4fba854ec6f0

-- 
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/e7321b4fdb2b0a5b856e1965496d4fba854ec6f0
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/20190131/330c83b1/attachment.html>


More information about the vc mailing list