4 * authusekey - decode a key from ascii and use it
10 #include "ntp_string.h"
11 #include "ntp_stdlib.h"
14 * Types of ascii representations for keys. "Standard" means a 64 bit
15 * hex number in NBS format, i.e. with the low order bit of each byte
16 * a parity bit. "NTP" means a 64 bit key in NTP format, with the
17 * high order bit of each byte a parity bit. "Ascii" means a 1-to-8
18 * character string whose ascii representation is used as the key.
21 #define KEY_TYPE_MD5 4
34 len
= strlen((const char *)cp
);
40 MD5auth_setkey(keyno
, str
, (int)strlen((const char *)str
));