]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
WPS NFC: Use pubkey mismatch config error from Enrollee
authorJouni Malinen <jouni@qca.qualcomm.com>
Thu, 11 Jul 2013 13:17:36 +0000 (16:17 +0300)
committerJouni Malinen <j@w1.fi>
Mon, 27 Jan 2014 19:44:30 +0000 (21:44 +0200)
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>

src/wps/wps_enrollee.c

index 5d63c4c08cdce17c9cc4eede047c54c652893150..9d48ca51e8c947207414cfb32c1ca3426f802204 100644 (file)
@@ -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;
                }
        }