aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant
diff options
context:
space:
mode:
authorJouni Malinen <jouni@codeaurora.org>2019-03-14 15:08:44 (GMT)
committerJouni Malinen <j@w1.fi>2019-03-14 22:31:09 (GMT)
commit67b3bcc95403fb7e90cd73216f0214e33f8c1246 (patch)
tree34b12da67ef50bd09bfc0f1fcf7624d94b17a898 /wpa_supplicant
parent22f90b32f14e718a6d6f59942b54aad03ec0c605 (diff)
downloadhostap-67b3bcc95403fb7e90cd73216f0214e33f8c1246.zip
hostap-67b3bcc95403fb7e90cd73216f0214e33f8c1246.tar.gz
hostap-67b3bcc95403fb7e90cd73216f0214e33f8c1246.tar.bz2
DPP2: Testing option for Config Object rejction
Add a new testing option to force Enrollee to reject the receive Config Object. Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
Diffstat (limited to 'wpa_supplicant')
-rw-r--r--wpa_supplicant/dpp_supplicant.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/wpa_supplicant/dpp_supplicant.c b/wpa_supplicant/dpp_supplicant.c
index 8de53ad..411bfff 100644
--- a/wpa_supplicant/dpp_supplicant.c
+++ b/wpa_supplicant/dpp_supplicant.c
@@ -1428,6 +1428,12 @@ static void wpas_dpp_gas_resp_cb(void *ctx, const u8 *addr, u8 dialog_token,
goto fail;
status = DPP_STATUS_OK;
+#ifdef CONFIG_TESTING_OPTIONS
+ if (dpp_test == DPP_TEST_REJECT_CONFIG) {
+ wpa_printf(MSG_INFO, "DPP: TESTING - Reject Config Object");
+ status = DPP_STATUS_CONFIG_REJECTED;
+ }
+#endif /* CONFIG_TESTING_OPTIONS */
fail:
if (status != DPP_STATUS_OK)
wpa_msg(wpa_s, MSG_INFO, DPP_EVENT_CONF_FAILED);