]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
eap_proxy: Fix eap_proxy_init() prototype to use const eapol_cb
authorJouni Malinen <jouni@qca.qualcomm.com>
Mon, 19 Dec 2016 20:14:07 +0000 (22:14 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 19 Dec 2016 20:14:07 +0000 (22:14 +0200)
The eapol_cb structure was made const and that change resulted in a
compilation warning/error if CONFIG_EAP_PROXY=<name> is enabled in the
wpa_supplicant build configuration. Fix this by updating the function
prototype to match the change.

Note: This results in a change needed to external eap_proxy_*.c
implementations to match the change.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
src/eap_peer/eap_proxy.h
src/eap_peer/eap_proxy_dummy.c

index 23cdbe698b3cc2b145666c02daeabbb202cd790e..7205fad44949d9f3cb0bd50c16c2485a7c8d5fce 100644 (file)
@@ -20,7 +20,7 @@ enum eap_proxy_status {
 };
 
 struct eap_proxy_sm *
-eap_proxy_init(void *eapol_ctx, struct eapol_callbacks *eapol_cb,
+eap_proxy_init(void *eapol_ctx, const struct eapol_callbacks *eapol_cb,
               void *msg_ctx);
 
 void eap_proxy_deinit(struct eap_proxy_sm *eap_proxy);
index d84f01234ed5b7f2ec073d04efefa669663224d7..08009cab24cb1a1a94fcb7ad8b4d1750027c4f46 100644 (file)
@@ -12,7 +12,7 @@
 #include "eap_proxy.h"
 
 struct eap_proxy_sm *
-eap_proxy_init(void *eapol_ctx, struct eapol_callbacks *eapol_cb,
+eap_proxy_init(void *eapol_ctx, const struct eapol_callbacks *eapol_cb,
               void *msg_ctx)
 {
        return NULL;