RADIUS: Redesign Request Authenticator generation

Simplify and make properly random the generation of the Request
Authenticator.

Signed-off-by: Nick Lowe <nick.lowe@lugatech.com>
This commit is contained in:
Nick Lowe 2016-01-27 13:22:48 +00:00 committed by Jouni Malinen
parent b71a64aa01
commit 2cbc6ffb3a
7 changed files with 18 additions and 28 deletions

View file

@ -61,7 +61,7 @@ static void start_example(void *eloop_ctx, void *timeout_ctx)
return;
}
radius_msg_make_authenticator(msg, (u8 *) ctx, sizeof(*ctx));
radius_msg_make_authenticator(msg);
if (!radius_msg_add_attr(msg, RADIUS_ATTR_USER_NAME,
(u8 *) "user", 4)) {