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

Function get_default_verify_paths

Lib/ssl.py:380–391  ·  view source on GitHub ↗

Return paths to default cafile and capath.

()

Source from the content-addressed store, hash-verified

378 "openssl_capath")
379
380def get_default_verify_paths():
381 """Return paths to default cafile and capath.
382 """
383 parts = _ssl.get_default_verify_paths()
384
385 # environment vars shadow paths
386 cafile = os.environ.get(parts[0], parts[1])
387 capath = os.environ.get(parts[2], parts[3])
388
389 return DefaultVerifyPaths(cafile if os.path.isfile(cafile) else None,
390 capath if os.path.isdir(capath) else None,
391 *parts)
392
393
394class _ASN1Object(namedtuple("_ASN1Object", "nid shortname longname oid")):

Callers

nothing calls this directly

Calls 3

getMethod · 0.45
isfileMethod · 0.45
isdirMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…