4.38 <GTlsProtocolVersion>

Enumeration: <GTlsProtocolVersion>

The TLS or DTLS protocol version used by a <GTlsConnection> or <GDtlsConnection>. The integer values of these versions are sequential to ensure newer known protocol versions compare greater than older known versions. Any known DTLS protocol version will compare greater than any SSL or TLS protocol version. The protocol version may be unknown if the TLS backend supports a newer protocol version that GLib does not yet know about. This means that it’s possible for an unknown DTLS protocol version to compare less than the TLS protocol versions.

Members

unknown

No protocol version or unknown protocol version

ssl-3-0

SSL 3.0, which is insecure and should not be used

tls-1-0

TLS 1.0, which is insecure and should not be used

tls-1-1

TLS 1.1, which is insecure and should not be used

tls-1-2

TLS 1.2, defined by RFC 5246

tls-1-3

TLS 1.3, defined by RFC 8446

dtls-1-0

DTLS 1.0, which is insecure and should not be used

dtls-1-2

DTLS 1.2, defined by RFC 6347