bk: 53392209U9Q4rv6GkFRLCrJke6JnPg
+* [Bug 2537] ntpd truncates symmetric keys to 20 bytes.
* [Bug 2546] Documentation updates.
(4.2.7p436) 2014/03/31 Released by Harlan Stenn <stenn@ntp.org>
* Update to libopts-40.2.15, and autogen-5.18.3pre18.
keyid_t keyno;
int keytype;
char buf[512]; /* lots of room for line */
- u_char keystr[20];
+ u_char keystr[32]; /* Bug 2537 */
int len;
int j;
continue;
}
len = strlen(token);
- if (len <= sizeof(keystr)) {
+ if (len <= 20) { /* Bug 2537 */
MD5auth_setkey(keyno, keytype, (u_char *)token, len);
} else {
char hex[] = "0123456789abcdef";