get_negotiated_protocol


Description:

[ Version ( since = "2.60" ) ]
public virtual unowned string? get_negotiated_protocol ()

Gets the name of the application-layer protocol negotiated during the handshake.

If the peer did not use the ALPN extension, or did not advertise a protocol that matched one of this's protocols, or the TLS backend does not support ALPN, then this will be null. See set_advertised_protocols.

Parameters:

this

a TlsConnection

Returns:

the negotiated protocol, or null