DtlsClientConnectionIF

GDtlsClientConnection is the client-side subclass of GDtlsConnection, representing a client-side DTLS connection.

Members

Functions

getAcceptedCas
ListG getAcceptedCas()

Gets the list of distinguished names of the Certificate Authorities that the server will accept certificates from. This will be set during the TLS handshake if the server requests a certificate. Otherwise, it will be NULL.

getDtlsClientConnectionStruct
GDtlsClientConnection* getDtlsClientConnectionStruct(bool transferOwnership = false)

Get the main Gtk struct

getServerIdentity
SocketConnectableIF getServerIdentity()

Gets conn's expected server identity

getStruct
void* getStruct()

the main Gtk struct as a void*

getValidationFlags
GTlsCertificateFlags getValidationFlags()

Gets conn's validation flags

setServerIdentity
void setServerIdentity(SocketConnectableIF 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 performing G_TLS_CERTIFICATE_BAD_IDENTITY validation, if enabled.

setValidationFlags
void setValidationFlags(GTlsCertificateFlags flags)

Sets conn's validation flags, to override the default set of checks performed when validating a server certificate. By default, G_TLS_CERTIFICATE_VALIDATE_ALL is used.

Static functions

getType
GType getType()

Meta

Since

2.48