]> git.ipfire.org Git - thirdparty/hostap.git/commit
wpa_auth: Make struct wpa_auth_callbacks const
authorJohannes Berg <johannes.berg@intel.com>
Thu, 26 Jan 2017 15:24:06 +0000 (16:24 +0100)
committerJouni Malinen <j@w1.fi>
Sun, 29 Jan 2017 16:41:26 +0000 (18:41 +0200)
commitcef8fac04b25bb0c648447513aee652b6f828256
treefe8a67ef93eb72c86358157bc0e4d567f2bfb658
parent30eddf35297a8cb7a48cf8bc8afc18004a51e037
wpa_auth: Make struct wpa_auth_callbacks const

Instead of copying the struct wpa_auth_callbacks, just keep a pointer to
it, keep the context pointer separate, and let the user just provide a
static const structure. This reduces the attack surface of heap
overwrites, since the function pointers move elsewhere.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
src/ap/wpa_auth.c
src/ap/wpa_auth.h
src/ap/wpa_auth_ft.c
src/ap/wpa_auth_glue.c
src/ap/wpa_auth_i.h
wpa_supplicant/ibss_rsn.c
wpa_supplicant/mesh_rsn.c