[Git][NTPsec/ntpsec][master] pylib, tests pylib: change default authentication to want AES

Hal Murray (@hal.murray) gitlab at mg.gitlab.com
Tue Nov 21 10:22:22 UTC 2023



Hal Murray pushed to branch master at NTPsec / ntpsec


Commits:
fff0fe92 by James Browning at 2023-11-21T02:04:15-08:00
pylib, tests pylib: change default authentication to want AES


- - - - -


2 changed files:

- pylib/packet.py
- tests/pylib/test_packet.py


Changes:

=====================================
pylib/packet.py
=====================================
@@ -726,7 +726,7 @@ class ControlSession:
         # Packet version number we use
         self.pktversion = ntp.magic.NTP_OLDVERSION + 1
         self.always_auth = False  # Always send authenticated requests
-        self.keytype = "MD5"
+        self.keytype = "AES"
         self.keyid = None
         self.passwd = None
         self.auth = None


=====================================
tests/pylib/test_packet.py
=====================================
@@ -778,7 +778,7 @@ class TestControlSession(unittest.TestCase):
         self.assertEqual(cls.secondary_timeout, ntpp.DEFSTIMEOUT)
         self.assertEqual(cls.pktversion, ntp.magic.NTP_OLDVERSION + 1)
         self.assertEqual(cls.always_auth, False)
-        self.assertEqual(cls.keytype, "MD5")
+        self.assertEqual(cls.keytype, "AES")
         self.assertEqual(cls.keyid, None)
         self.assertEqual(cls.passwd, None)
         self.assertEqual(cls.auth, None)



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

-- 
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/-/commit/fff0fe92996bc355769909d2a3249b1b2bb8418c
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/20231121/7a5decc4/attachment-0001.htm>


More information about the vc mailing list