Possibly copies session state from one connection to another, for use in TLS session resumption. This is not normally needed, but may be used when the same session needs to be used between different endpoints, as is required by some protocols, such as FTP over TLS. source should have already completed a handshake and, since TLS 1.3, it should have been used to read data at least once. conn should not have completed a handshake.
Gets conn's expected server identity
SSL 3.0 is no longer supported. See gio.tls_client_connection.TlsClientConnection.setUseSsl3 for details.
Gets conn's validation flags
Sets conn's expected server identity, which is used both to tell servers on virtual hosts which certificate to present, and also to let conn know what name to look for in the certificate when performing gio.types.TlsCertificateFlags.BadIdentity validation, if enabled.
Since GLib 2.42.1, SSL 3.0 is no longer supported.
Sets conn's validation flags, to override the default set of checks performed when validating a server certificate. By default, gio.types.TlsCertificateFlags.ValidateAll is used.
Creates a new #GTlsClientConnection wrapping base_io_stream (which must have pollable input and output streams) which is assumed to communicate with the server identified by server_identity.
gio.tls_client_connection.TlsClientConnection is the client-side subclass of gio.tls_connection.TlsConnection, representing a client-side TLS connection.