From: Jouni Malinen Date: Mon, 19 Dec 2016 20:14:07 +0000 (+0200) Subject: eap_proxy: Fix eap_proxy_init() prototype to use const eapol_cb X-Git-Tag: hostap_2_7~1988 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=79a54ab9f65448a9f3f8f149da5379614ad7bdca;p=thirdparty%2Fhostap.git eap_proxy: Fix eap_proxy_init() prototype to use const eapol_cb The eapol_cb structure was made const and that change resulted in a compilation warning/error if CONFIG_EAP_PROXY= 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 --- diff --git a/src/eap_peer/eap_proxy.h b/src/eap_peer/eap_proxy.h index 23cdbe698..7205fad44 100644 --- a/src/eap_peer/eap_proxy.h +++ b/src/eap_peer/eap_proxy.h @@ -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); diff --git a/src/eap_peer/eap_proxy_dummy.c b/src/eap_peer/eap_proxy_dummy.c index d84f01234..08009cab2 100644 --- a/src/eap_peer/eap_proxy_dummy.c +++ b/src/eap_peer/eap_proxy_dummy.c @@ -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;