twisted.internet._sslverifyView Source (View In Hierarchy)
Implements interfaces: twisted.internet.interfaces.IOpenSSLClientConnectionCreator
Client creator for TLS.
Private implementation type (not exposed to applications) for public
|Method||clientConnectionForTLS||Create a TLS connection for a client.|
|Instance Variable||_ctx||The context to use for new connections. (type:
|Instance Variable||_hostname||The hostname to verify, as specified by the application, as some
human-readable text. (type:
|Instance Variable||_hostnameBytes||The hostname to verify, decoded into IDNA-encoded bytes. This is passed to
APIs which think that hostnames are bytes, such as OpenSSL's SNI
|Instance Variable||_hostnameASCII||The hostname, as transcoded into IDNA ASCII-range unicode code points.
This is pre-transcoded because the
|Instance Variable||_sendSNI||Whether or not to send the SNI with the handshake. Will be
service_identitypackage is rather strict about requiring the
idnapackage from PyPI for internationalized domain names, rather than working with Python's built-in (but sometimes broken) IDNA encoding. ASCII values, however, will always work. (type:
Create a TLS connection for a client.
|Parameters||tlsProtocol||the TLS protocol initiating the connection. (type: |
|Returns||the configured client connection. (type: |
|Note||This will call |
for pyOpenSSL that verifies the hostname in the presented certificate
matches the one passed to this
|Parameters||connection||the connection which is handshaking. (type: |
|where||flags indicating progress through a TLS handshake. (type: |
|ret||ignored (type: ignored)|