MCPcopy Index your code
hub / github.com/mongodb/mongo-python-driver / main

Function main

tools/ocsptest.py:52–58  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

50
51
52def main() -> None:
53 parser = argparse.ArgumentParser(description="Debug OCSP")
54 parser.add_argument("--host", type=str, required=True, help="Host to connect to")
55 parser.add_argument("-p", "--port", type=int, default=443, help="Port to connect to")
56 parser.add_argument("--ca_file", type=str, default=None, help="CA file for host")
57 args = parser.parse_args()
58 check_ocsp(args.host, args.port, args.ca_file)
59
60
61if __name__ == "__main__":

Callers 1

ocsptest.pyFile · 0.70

Calls 1

check_ocspFunction · 0.85

Tested by

no test coverage detected