From: Jouni Malinen Date: Sat, 10 Aug 2019 15:37:54 +0000 (+0300) Subject: tests: Additional sae_password parsing coverage X-Git-Tag: hostap_2_10~2493 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=161f1d5d7ca8f38e283f68d849de8cc5ea70492a;p=thirdparty%2Fhostap.git tests: Additional sae_password parsing coverage Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_ap_config.py b/tests/hwsim/test_ap_config.py index 0e8cbcca1..a1b80aa48 100644 --- a/tests/hwsim/test_ap_config.py +++ b/tests/hwsim/test_ap_config.py @@ -325,6 +325,7 @@ def test_ap_config_invalid_value(dev, apdev, params): ("fils_cache_id", "q"), ("venue_url", "foo"), ("venue_url", "1:" + 255*"a"), + ("sae_password", "secret|mac=qq"), ("unknown-item", "foo")] for field, val in tests: if "FAIL" not in hapd.request("SET %s %s" % (field, val)): @@ -433,6 +434,10 @@ def test_ap_config_set_oom(dev, apdev): "SET acs_chan_bias 1:0.8 6:0.8 11:0.8"), (1, "parse_wpabuf_hex", "SET vendor_elements 01020304"), (1, "parse_fils_realm", "SET fils_realm example.com"), + (1, "parse_sae_password", "SET sae_password secret"), + (2, "parse_sae_password", "SET sae_password secret"), + (2, "parse_sae_password", "SET sae_password secret|id=pw"), + (3, "parse_sae_password", "SET sae_password secret|id=pw"), (1, "hostapd_config_fill", "SET pac_opaque_encr_key 000102030405060708090a0b0c0d0e0f"), (1, "hostapd_config_fill", "SET eap_message hello"),