From: Jouni Malinen Date: Thu, 11 Jul 2013 13:17:36 +0000 (+0300) Subject: WPS NFC: Use pubkey mismatch config error from Enrollee X-Git-Tag: hostap_2_1~59 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ac08752d289698b7f0eace0bf9dcacfc0fe0ac4c;p=thirdparty%2Fhostap.git 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 --- 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; } }