[PATCH] RSN authenticator: adjust parameter type in hexdump to avoid warning

Jouni Malinen j at w1.fi
Mon Sep 9 05:46:08 PDT 2019

On Sat, Aug 17, 2019 at 02:48:51PM +0200, Leon M. George wrote:
> diff --git a/src/ap/wpa_auth.c b/src/ap/wpa_auth.c
> @@ -979,7 +979,7 @@ void wpa_receive(struct wpa_authenticator *wpa_auth,

>  	wpa_hexdump(MSG_MSGDUMP,
>  		    "WPA: EAPOL-Key header (ending before Key MIC)",
> -		    key, sizeof(*key));
> +		    (const u8 *) key, sizeof(*key));

Which compiler are you using and what warning do you see here?
wpa_hexdump() takes in a const void * and it is not clear why this key
variable (struct wpa_eapol_key *) would need to be typecast to something

Jouni Malinen                                            PGP id EFC895FA

More information about the Hostap mailing list