TlsProtocolVersion

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 %G_TLS_PROTOCOL_VERSION_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.

Since

2.70

Entries

Link copied to clipboard

No protocol version or unknown protocol version

Link copied to clipboard

SSL 3.0, which is insecure and should not be used

Link copied to clipboard

TLS 1.0, which is insecure and should not be used

Link copied to clipboard

TLS 1.1, which is insecure and should not be used

Link copied to clipboard

TLS 1.2, defined by RFC 5246

Link copied to clipboard

TLS 1.3, defined by RFC 8446

Link copied to clipboard

DTLS 1.0, which is insecure and should not be used

Link copied to clipboard

DTLS 1.2, defined by RFC 6347

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
val nativeValue: <Error class: unknown class>
Link copied to clipboard

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.