diff options
Diffstat (limited to 'contrib/ntp/libntp/authreadkeys.c')
-rw-r--r-- | contrib/ntp/libntp/authreadkeys.c | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/contrib/ntp/libntp/authreadkeys.c b/contrib/ntp/libntp/authreadkeys.c index ce5cefb..22020f3 100644 --- a/contrib/ntp/libntp/authreadkeys.c +++ b/contrib/ntp/libntp/authreadkeys.c @@ -9,19 +9,6 @@ #include "ntp_syslog.h" #include "ntp_stdlib.h" -#ifdef DES -/* - * Types of ascii representations for keys. "Standard" means a 64 bit - * hex number in NBS format, i.e. with the low order bit of each byte - * a parity bit. "NTP" means a 64 bit key in NTP format, with the - * high order bit of each byte a parity bit. "Ascii" means a 1-to-8 - * character string whose ascii representation is used as the key. - */ -#define KEY_TYPE_STD 1 -#define KEY_TYPE_NTP 2 -#define KEY_TYPE_ASCII 3 -#endif - /* * Arbitrary long string of ASCII characters. */ @@ -140,19 +127,6 @@ authreadkeys( continue; } switch (*token) { -#ifdef DES - case 'S': - case 's': - keytype = KEY_TYPE_STD; break; - - case 'N': - case 'n': - keytype = KEY_TYPE_NTP; break; - - case 'A': - case 'a': - keytype = KEY_TYPE_ASCII; break; -#endif case 'M': case 'm': keytype = KEY_TYPE_MD5; break; @@ -173,17 +147,6 @@ authreadkeys( keyno); } else { switch(keytype) { -#ifdef DES - case KEY_TYPE_STD: - case KEY_TYPE_NTP: - case KEY_TYPE_ASCII: - if (!authusekey(keyno, keytype, - (u_char *)token)) - msyslog(LOG_ERR, - "format/parity error for DES key %ld, not used", - keyno); - break; -#endif case KEY_TYPE_MD5: if (!authusekey(keyno, keytype, (u_char *)token)) |