TlsClientConnection
Object Hierarchy:
Description:
[
CCode ( type_cname =
"GTlsClientConnectionInterface" , type_id =
"g_tls_client_connection_get_type ()" ) ]
[
Version ( since =
"2.28" ) ]
public interface TlsClientConnection :
TlsConnection
TlsClientConnection is the client-side subclass of
TlsConnection, representing a client-side TLS connection.
Content:
Properties:
- public abstract List<ByteArray> accepted_cas { owned get; }
A list of the distinguished names of the Certificate Authorities that the
server will accept client certificates signed by.
- public abstract SocketConnectable server_identity { get; set construct; }
A
SocketConnectable describing the identity of the server that is expected on the other end of the connection.
- public abstract bool use_ssl3 { get; set construct; }
SSL 3.0 is no longer supported.
- public abstract TlsCertificateFlags validation_flags { get; set construct; }
What steps to perform when validating a certificate received from a server.
Static methods:
Methods:
- public abstract void copy_session_state (TlsClientConnection source)
Possibly copies session state from one connection to another, for use in TLS
session resumption.
- public List<ByteArray> get_accepted_cas ()
Gets the list of distinguished names of the Certificate Authorities that the
server will accept certificates from.
- public unowned SocketConnectable? get_server_identity ()
Gets this's expected server identity
- public bool get_use_ssl3 ()
SSL 3.0 is no longer supported.
- public TlsCertificateFlags get_validation_flags ()
Gets this's validation flags
- public void set_server_identity (SocketConnectable identity)
Sets this's expected server identity,
which is used both to tell servers on virtual hosts which certificate to present, and also to let this
know what name to look for in the certificate when performing g_tls_certificate_bad_identity validation,
if enabled.
- public void set_use_ssl3 (bool use_ssl3)
Since GLib 2.42.1, SSL 3.0 is no longer supported.
- public void set_validation_flags (TlsCertificateFlags flags)
Sets this's validation flags, to override
the default set of checks performed when validating a server certificate.
Inherited Members:
All known members inherited from class GLib.TlsConnection
All known members inherited from class GLib.IOStream
All known members inherited from class GLib.Object