summaryrefslogtreecommitdiffstatshomepage
path: root/tests/extmod/ssl_sslcontext_ciphers.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/extmod/ssl_sslcontext_ciphers.py')
-rw-r--r--tests/extmod/ssl_sslcontext_ciphers.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/extmod/ssl_sslcontext_ciphers.py b/tests/extmod/ssl_sslcontext_ciphers.py
index d87e96afdf..20c00b9176 100644
--- a/tests/extmod/ssl_sslcontext_ciphers.py
+++ b/tests/extmod/ssl_sslcontext_ciphers.py
@@ -12,7 +12,9 @@ ctx = ssl.SSLContext(ssl.PROTOCOL_TLS_CLIENT)
ciphers = ctx.get_ciphers()
for ci in ciphers:
- print(ci)
+ # Only print those ciphers know to exist on all ports.
+ if ("TLS-ECDHE-ECDSA-WITH-AES" in ci or "TLS-RSA-WITH-AES" in ci) and "CBC" in ci:
+ print(ci)
ctx.set_ciphers(ciphers[:1])