From 7a91f6dba45fcc35272c8250d8cb4553aa5d0f16 Mon Sep 17 00:00:00 2001 From: Andrew Zaborowski Date: Tue, 25 Aug 2020 00:34:26 +0200 Subject: [PATCH] unit: Add a WSC-R PBC test with Open auth_type --- unit/test-wsc.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/unit/test-wsc.c b/unit/test-wsc.c index 0b9ec2f3..2063244c 100644 --- a/unit/test-wsc.c +++ b/unit/test-wsc.c @@ -2584,6 +2584,14 @@ struct wsc_credential wsc_r_test_wpa2_cred_psk = { .encryption_type = WSC_ENCRYPTION_TYPE_AES_TKIP, }; +struct wsc_credential wsc_r_test_open_cred = { + .ssid_len = 7, + .ssid = "thessid", + .auth_type = WSC_AUTHENTICATION_TYPE_OPEN, + .network_key_len = 0, + .encryption_type = WSC_ENCRYPTION_TYPE_NONE, +}; + int main(int argc, char *argv[]) { l_test_init(&argc, &argv); @@ -2703,6 +2711,9 @@ int main(int argc, char *argv[]) l_test_add("/wsc-r/handshake/PBC Handshake WPA2 PSK test", wsc_r_test_pbc_handshake, &wsc_r_test_wpa2_cred_psk); + l_test_add("/wsc-r/handshake/PBC Handshake Open test", + wsc_r_test_pbc_handshake, + &wsc_r_test_open_cred); done: return l_test_run();