From: Jouni Malinen Date: Mon, 16 Oct 2017 14:42:20 +0000 (+0300) Subject: tests: Comment out during-association TK-in-memory checks X-Git-Tag: hostap_2_7~1012 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b74f82a4f88107756f2320e9435a61cb165a569a;p=thirdparty%2Fhostap.git tests: Comment out during-association TK-in-memory checks TK needs to be maintained in memory for additional testing functionality, so for now, comment out these checks. Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_ap_eap.py b/tests/hwsim/test_ap_eap.py index 0acb39a36..f04a7fc69 100644 --- a/tests/hwsim/test_ap_eap.py +++ b/tests/hwsim/test_ap_eap.py @@ -5030,8 +5030,8 @@ def test_wpa2_eap_ttls_pap_key_lifetime_in_memory(dev, apdev, params): raise Exception("KCK not found while associated") if kek not in buf: raise Exception("KEK not found while associated") - if tk in buf: - raise Exception("TK found from memory") + #if tk in buf: + # raise Exception("TK found from memory") logger.info("Checking keys in memory after disassociation") buf = read_process_memory(pid, password) diff --git a/tests/hwsim/test_ap_ft.py b/tests/hwsim/test_ap_ft.py index bc03c3c77..ddbb1f188 100644 --- a/tests/hwsim/test_ap_ft.py +++ b/tests/hwsim/test_ap_ft.py @@ -911,8 +911,8 @@ def test_ft_psk_key_lifetime_in_memory(dev, apdev, params): raise Exception("KCK not found while associated") if kek not in buf: raise Exception("KEK not found while associated") - if tk in buf: - raise Exception("TK found from memory") + #if tk in buf: + # raise Exception("TK found from memory") logger.info("Checking keys in memory after disassociation") buf = read_process_memory(pid, pmk) diff --git a/tests/hwsim/test_ap_psk.py b/tests/hwsim/test_ap_psk.py index f0230df46..2c753afe5 100644 --- a/tests/hwsim/test_ap_psk.py +++ b/tests/hwsim/test_ap_psk.py @@ -2205,8 +2205,8 @@ def test_wpa2_psk_key_lifetime_in_memory(dev, apdev, params): raise Exception("KCK not found while associated") if kek not in buf: raise Exception("KEK not found while associated") - if tk in buf: - raise Exception("TK found from memory") + #if tk in buf: + # raise Exception("TK found from memory") logger.info("Checking keys in memory after disassociation") buf = read_process_memory(pid, pmk) diff --git a/tests/hwsim/test_erp.py b/tests/hwsim/test_erp.py index 718521147..836edf5e9 100644 --- a/tests/hwsim/test_erp.py +++ b/tests/hwsim/test_erp.py @@ -316,8 +316,8 @@ def test_erp_key_lifetime_in_memory(dev, apdev, params): raise Exception("KCK not found while associated") if kek not in buf: raise Exception("KEK not found while associated") - if tk in buf: - raise Exception("TK found from memory") + #if tk in buf: + # raise Exception("TK found from memory") logger.info("Checking keys in memory after disassociation") buf = read_process_memory(pid, password) diff --git a/tests/hwsim/test_sae.py b/tests/hwsim/test_sae.py index 0611e4b3b..2ed5c0936 100644 --- a/tests/hwsim/test_sae.py +++ b/tests/hwsim/test_sae.py @@ -344,8 +344,8 @@ def test_sae_key_lifetime_in_memory(dev, apdev, params): raise Exception("KCK not found while associated") if kek not in buf: raise Exception("KEK not found while associated") - if tk in buf: - raise Exception("TK found from memory") + #if tk in buf: + # raise Exception("TK found from memory") verify_not_present(buf, sae_k, fname, "SAE(k)") verify_not_present(buf, sae_keyseed, fname, "SAE(keyseed)") verify_not_present(buf, sae_kck, fname, "SAE(KCK)")