MCPcopy Index your code
hub / github.com/aws/aws-cli / disable_check_hostname

Function disable_check_hostname

awscli/botocore/httpsession.py:156–162  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

154 context.post_handshake_auth = True
155
156 def disable_check_hostname():
157 if (
158 getattr(context, "check_hostname", None) is not None
159 ): # Platform-specific: Python 3.2
160 # We do our own verification, including fingerprints and alternative
161 # hostnames. So disable it here
162 context.check_hostname = False
163
164 # The order of the below lines setting verify_mode and check_hostname
165 # matter due to safe-guards SSLContext has to prevent an SSLContext with

Callers 1

create_urllib3_contextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected