TlsError

Added in version 2.28.

class TlsError

An error code used with %G_TLS_ERROR in a Error returned from a TLS-related routine.

Methods

class TlsError
quark() int

Gets the TLS error quark.

Added in version 2.28.

Fields

class TlsError
BAD_CERTIFICATE

The certificate presented could not be parsed or failed validation.

BAD_CERTIFICATE_PASSWORD

The certificate failed to load because a password was incorrect. Since: 2.72

CERTIFICATE_REQUIRED

The TLS handshake failed because the server requested a client-side certificate, but none was provided. See set_certificate().

EOF

The TLS connection was closed without proper notice, which may indicate an attack. See set_require_close_notify().

HANDSHAKE

The TLS handshake failed because the peer’s certificate was not acceptable.

INAPPROPRIATE_FALLBACK

The TLS handshake failed because the client sent the fallback SCSV, indicating a protocol downgrade attack. Since: 2.60

MISC

Miscellaneous TLS error

NOT_TLS

The TLS handshake failed because the peer does not seem to be a TLS server.

UNAVAILABLE

No TLS provider is available