MCPcopy Index your code
hub / github.com/python/cpython / block_openssl_algorithms

Function block_openssl_algorithms

Lib/test/support/hashlib_helper.py:1081–1086  ·  view source on GitHub ↗

Block OpenSSL implementations, except those given in *exclude*.

(*, exclude=())

Source from the content-addressed store, hash-verified

1079
1080@contextlib.contextmanager
1081def block_openssl_algorithms(*, exclude=()):
1082 """Block OpenSSL implementations, except those given in *exclude*."""
1083 with contextlib.ExitStack() as stack:
1084 for name in CANONICAL_DIGEST_NAMES.difference(exclude):
1085 stack.enter_context(block_algorithm(name, allow_builtin=True))
1086 yield
1087
1088
1089@contextlib.contextmanager

Callers

nothing calls this directly

Calls 3

block_algorithmFunction · 0.85
differenceMethod · 0.80
enter_contextMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…