TlsClientConnection
Object Hierarchy:
Description:
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 { construct set; get; }
A
SocketConnectable describing the identity of the server that is expected on the other end of the connection.
- public abstract bool use_ssl3 { construct set; get; }
If true, tells the
connection to use SSL 3.0 rather than trying to negotiate the best version of TLS or SSL to use.
- public abstract TlsCertificateFlags validation_flags { construct set; get; }
What steps to perform when validating a certificate received from a
server.
Static methods:
Methods:
- public List<ByteArray> get_accepted_cas ()
Gets the list of distinguished names of the Certificate Authorities
that the server will accept certificates from.
- public weak SocketConnectable get_server_identity ()
Gets this's expected server identity
- public bool get_use_ssl3 ()
Gets whether this will use SSL 3.0
rather than the highest-supported version of TLS; see set_use_ssl3
.
- 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)
If use_ssl3
is true
, this forces this to use SSL 3.0 rather than trying to properly negotiate the right version
of TLS or SSL to use.
- 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