diff options
author | Rui Paulo <rpaulo@FreeBSD.org> | 2013-06-25 02:47:41 +0000 |
---|---|---|
committer | Rui Paulo <rpaulo@FreeBSD.org> | 2013-06-25 02:47:41 +0000 |
commit | 5e2639d568f6bb660501a77cc83413c3412562e3 (patch) | |
tree | db97ebf07cc76b41926fb6696433b541307fbc19 /src/ap/peerkey_auth.c | |
parent | 19f9885f6aafcd7c3eee4df8a014287d12279851 (diff) |
Notes
Diffstat (limited to 'src/ap/peerkey_auth.c')
-rw-r--r-- | src/ap/peerkey_auth.c | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/src/ap/peerkey_auth.c b/src/ap/peerkey_auth.c index f68c47909ae6e..ba5c606442f43 100644 --- a/src/ap/peerkey_auth.c +++ b/src/ap/peerkey_auth.c @@ -2,14 +2,8 @@ * hostapd - PeerKey for Direct Link Setup (DLS) * Copyright (c) 2006-2009, Jouni Malinen <j@w1.fi> * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. - * - * Alternatively, this software may be distributed under the terms of BSD - * license. - * - * See README and COPYING for more details. + * This software may be distributed under the terms of the BSD license. + * See README for more details. */ #include "utils/includes.h" @@ -18,6 +12,7 @@ #include "utils/eloop.h" #include "crypto/sha1.h" #include "crypto/sha256.h" +#include "crypto/random.h" #include "wpa_auth.h" #include "wpa_auth_i.h" #include "wpa_auth_ie.h" @@ -294,7 +289,7 @@ void wpa_smk_m3(struct wpa_authenticator *wpa_auth, return; } - if (os_get_random(smk, PMK_LEN)) { + if (random_get_bytes(smk, PMK_LEN)) { wpa_printf(MSG_DEBUG, "RSN: Failed to generate SMK"); return; } |