gio.tls_client_connection

Module for [TlsClientConnection] interface

Types 2

[gio.tls_client_connection.TlsClientConnection] is the client-side subclass of [gio.tls_connection.TlsConnection], representing a client-side TLS connection.

Methods
gio.socket_connectable.SocketConnectable serverIdentity() @propertyGet `serverIdentity` property. Returns: A #GSocketConnectable describing the identity of the server that is expected on the other end of the connection.
void serverIdentity(gio.socket_connectable.SocketConnectable propval) @propertySet `serverIdentity` property. Params: propval = A #GSocketConnectable describing the identity of the server that is expected on the other end of the connection.
bool useSsl3() @propertyGet `useSsl3` property. Returns: SSL 3.0 is no longer supported. See [gio.tlsclientconnection.TlsClientConnection.setUseSsl3] for details.
void useSsl3(bool propval) @propertySet `useSsl3` property. Params: propval = SSL 3.0 is no longer supported. See [gio.tlsclientconnection.TlsClientConnection.setUseSsl3] for details.
gio.types.TlsCertificateFlags validationFlags() @propertyGet `validationFlags` property. Returns: What steps to perform when validating a certificate received from a server. Server certificates that fail to validate in any of the ways indicated here will...
void validationFlags(gio.types.TlsCertificateFlags propval) @propertySet `validationFlags` property. Params: propval = What steps to perform when validating a certificate received from a server. Server certificates that fail to validate in any of the ways indicated ...
gio.tls_client_connection.TlsClientConnection new_(gio.iostream.IOStream baseIoStream, gio.socket_connectable.SocketConnectable serverIdentity = null)Creates a new #GTlsClientConnection wrapping baseiostream (which must have pollable input and output streams) which is assumed to communicate with the server identified by server_identity.
void copySessionState(gio.tls_client_connection.TlsClientConnection source)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 differen...
gio.socket_connectable.SocketConnectable getServerIdentity()Gets conn's expected server identity Returns: a #GSocketConnectable describing the expected server identity, or null if the expected identity is not known.
bool getUseSsl3()SSL 3.0 is no longer supported. See [gio.tlsclientconnection.TlsClientConnection.setUseSsl3] for details. Returns: false
void setServerIdentity(gio.socket_connectable.SocketConnectable identity)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 perfo...
void setUseSsl3(bool useSsl3)Since GLib 2.42.1, SSL 3.0 is no longer supported.
void setValidationFlags(gio.types.TlsCertificateFlags flags)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.
Methods
T serverIdentity(gio.socket_connectable.SocketConnectable propval)Set `serverIdentity` property. Params: propval = A #GSocketConnectable describing the identity of the server that is expected on the other end of the connection.
T useSsl3(bool propval)Set `useSsl3` property. Params: propval = SSL 3.0 is no longer supported. See [gio.tlsclientconnection.TlsClientConnection.setUseSsl3] for details. Returns: Builder instance for fluent chaining
T validationFlags(gio.types.TlsCertificateFlags propval)Set `validationFlags` property. Params: propval = What steps to perform when validating a certificate received from a server. Server certificates that fail to validate in any of the ways indicated ...