get_tls


Description:

[ Version ( since = "1.2" ) ]
public unowned TlsConnection get_tls () throws Error

Get the TLS connection of this.

For client side this will return the TlsClientConnection when connected over TLS.

For server side connections, this function will create a GTlsServerConnection when called the first time and will return that same connection on subsequent calls. The server is then responsible for configuring the TLS connection.

Parameters:

this

a Connection

Returns:

the TLS connection for this.