DtlsClientConnection.setServerIdentity
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 performing [gio.types.TlsCertificateFlags.BadIdentity] validation, if enabled.
Parameters
identity | a #GSocketConnectable describing the expected server identity |