get_protocol_version


Description:

[ Version ( since = "2.70" ) ]
public TlsProtocolVersion get_protocol_version ()

Returns the current TLS protocol version, which may be g_tls_protocol_version_unknown if the connection has not handshaked, or has been closed, or if the TLS backend has implemented a protocol version that is not a recognized TlsProtocolVersion.

Parameters:

this

a TlsConnection

Returns:

The current TLS protocol version