diff options
author | YASUOKA Masahiko <yasuoka@cvs.openbsd.org> | 2024-07-14 11:12:33 +0000 |
---|---|---|
committer | YASUOKA Masahiko <yasuoka@cvs.openbsd.org> | 2024-07-14 11:12:33 +0000 |
commit | 289117587a6ff9b4b0004cf8a8037ceeb2930223 (patch) | |
tree | 6b0bf3cdefdb4abf7eb00453611a55e7c770b193 | |
parent | c7200af3e72d96824a49991cf4b7be6c30d06839 (diff) |
Mistakenly the same challenge is used for testing CHAP.
-rw-r--r-- | usr.sbin/radiusctl/radiusctl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/radiusctl/radiusctl.c b/usr.sbin/radiusctl/radiusctl.c index 8c46815c0de..9caaabe181a 100644 --- a/usr.sbin/radiusctl/radiusctl.c +++ b/usr.sbin/radiusctl/radiusctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: radiusctl.c,v 1.9 2024/07/09 17:26:14 yasuoka Exp $ */ +/* $OpenBSD: radiusctl.c,v 1.10 2024/07/14 11:12:32 yasuoka Exp $ */ /* * Copyright (c) 2015 YASUOKA Masahiko <yasuoka@yasuoka.net> * @@ -307,6 +307,7 @@ radius_test(struct parse_result *res) u_char resp[1 + MD5_DIGEST_LENGTH]; /* "1 + " for CHAP Id */ MD5_CTX md5ctx; + arc4random_buf(chal, sizeof(chal)); arc4random_buf(resp, 1); /* CHAP Id is random */ MD5Init(&md5ctx); MD5Update(&md5ctx, resp, 1); |