()
| 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 |
no outgoing calls
no test coverage detected