WPS: Use only os_get_random() for PIN generation
authorNick Lowe <nick.lowe@lugatech.com>
Tue, 9 Feb 2016 14:47:47 +0000 (14:47 +0000)
committerJouni Malinen <j@w1.fi>
Fri, 19 Feb 2016 16:44:40 +0000 (18:44 +0200)
commit98a516eae8260e6fd5c48ddecf8d006285da7389
treec4e476cd4f11428a490cbd55d709cf88aff7a702
parentf441e5af777c01f8649374fe91ff135e080aa959
WPS: Use only os_get_random() for PIN generation

Remove the fallback dependency on os_random() when generating a WPS pin.
This is exceptionally unlikely to ever be called as the call to
os_get_random() is unlikely to fail. The intention is to facilitate
future removal of os_random() as it uses a low quality PRNG.

Signed-off-by: Nick Lowe <nick.lowe@lugatech.com>
src/ap/wps_hostapd.c
src/wps/wps.h
src/wps/wps_common.c
wpa_supplicant/ap.c
wpa_supplicant/ctrl_iface.c
wpa_supplicant/p2p_supplicant.c
wpa_supplicant/wps_supplicant.c