commit 7a91f6dba45fcc35272c8250d8cb4553aa5d0f16
parent 3aafb80b544f158d2f75f851a8a3607e0f54b17a
Author: Andrew Zaborowski <andrew.zaborowski@intel.com>
Date: Tue, 25 Aug 2020 00:34:26 +0200
unit: Add a WSC-R PBC test with Open auth_type
Diffstat:
1 file changed, 11 insertions(+), 0 deletions(-)
diff --git 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();