Parcourir la source

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 <jouni@qca.qualcomm.com>
Jouni Malinen il y a 11 ans
Parent
commit
ac08752d28
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  1. 1 0
      src/wps/wps_enrollee.c

+ 1 - 0
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;
 		}
 	}