From ac08752d289698b7f0eace0bf9dcacfc0fe0ac4c Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Thu, 11 Jul 2013 16:17:36 +0300 Subject: [PATCH] WPS NFC: Use pubkey mismatch config error from Enrollee This was already done for Registrar, but the Enrollee case did not set config error properly if Registrar public key did not match the hash received during NFC connection handover. Signed-hostap: Jouni Malinen --- src/wps/wps_enrollee.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/wps/wps_enrollee.c b/src/wps/wps_enrollee.c index 5d63c4c08..9d48ca51e 100644 --- a/src/wps/wps_enrollee.c +++ b/src/wps/wps_enrollee.c @@ -527,6 +527,7 @@ static int wps_process_pubkey(struct wps_data *wps, const u8 *pk, wpa_hexdump(MSG_DEBUG, "WPS: Expected public key hash", wps->peer_pubkey_hash, WPS_OOB_PUBKEY_HASH_LEN); + wps->config_error = WPS_CFG_PUBLIC_KEY_HASH_MISMATCH; return -1; } }