MCPcopy Index your code
hub / github.com/RustPython/RustPython / supports_kx_alias

Function supports_kx_alias

Lib/test/test_ssl.py:2811–2816  ·  view source on GitHub ↗
(ctx, aliases)

Source from the content-addressed store, hash-verified

2809
2810
2811def supports_kx_alias(ctx, aliases):
2812 for cipher in ctx.get_ciphers():
2813 for alias in aliases:
2814 if f"Kx={alias}" in cipher['description']:
2815 return True
2816 return False
2817
2818
2819class ThreadedTests(unittest.TestCase):

Callers 1

test_dh_paramsMethod · 0.85

Calls 1

get_ciphersMethod · 0.45

Tested by

no test coverage detected