[Git][NTPsec/ntpsec][master] No need for KEY_TYPE_MD5 since OpenSSL is mandatory
Matt Selsky
gitlab at mg.gitlab.com
Tue Jan 31 05:36:37 UTC 2017
Matt Selsky pushed to branch master at NTPsec / ntpsec
Commits:
2767c2d8 by Matt Selsky at 2017-01-31T00:35:59-05:00
No need for KEY_TYPE_MD5 since OpenSSL is mandatory
- - - - -
3 changed files:
- include/ntp.h
- tests/libntp/authkeys.c
- tests/libntp/macencrypt.c
Changes:
=====================================
include/ntp.h
=====================================
--- a/include/ntp.h
+++ b/include/ntp.h
@@ -132,7 +132,6 @@ typedef unsigned int u_int;
* Miscellaneous stuff
*/
#define NTP_MAXKEY 65535 /* max authentication key number */
-#define KEY_TYPE_MD5 NID_md5 /* MD5 digest NID */
/*
* Limits of things
*/
=====================================
tests/libntp/authkeys.c
=====================================
--- a/tests/libntp/authkeys.c
+++ b/tests/libntp/authkeys.c
@@ -34,7 +34,7 @@ TEST_TEAR_DOWN(authkeys) {}
-static const int KEYTYPE = KEY_TYPE_MD5;
+static const int KEYTYPE = NID_md5;
void AddTrustedKey(keyid_t keyno) {
=====================================
tests/libntp/macencrypt.c
=====================================
--- a/tests/libntp/macencrypt.c
+++ b/tests/libntp/macencrypt.c
@@ -17,7 +17,7 @@ TEST_TEAR_DOWN(macencrypt) {}
/*
* Example packet with MD5 hash calculated manually.
*/
-const int keytype = KEY_TYPE_MD5;
+const int keytype = NID_md5;
const char *key = "abcdefgh";
const u_short keyLength = 8;
const char *packet = "ijklmnopqrstuvwx";
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/2767c2d8e6a7db09112c3eea3eb4c0ed12b30b7e
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20170131/7b2be8b3/attachment.html>
More information about the vc
mailing list