:right-sidebar: True TlsError =================================================================== .. currentmodule:: gi.repository.Gio .. versionadded:: 2.28 .. class:: TlsError :no-contents-entry: An error code used with ``%G_TLS_ERROR`` in a :obj:`~gi.repository.GLib.Error` returned from a TLS-related routine. Methods ------- .. rst-class:: interim-class .. class:: TlsError :no-index: .. method:: quark() -> int Gets the TLS error quark. .. versionadded:: 2.28 Fields ------ .. rst-class:: interim-class .. class:: TlsError :no-index: .. attribute:: BAD_CERTIFICATE The certificate presented could not be parsed or failed validation. .. attribute:: BAD_CERTIFICATE_PASSWORD The certificate failed to load because a password was incorrect. Since: 2.72 .. attribute:: CERTIFICATE_REQUIRED The TLS handshake failed because the server requested a client-side certificate, but none was provided. See :func:`~gi.repository.Gio.TlsConnection.set_certificate`. .. attribute:: EOF The TLS connection was closed without proper notice, which may indicate an attack. See :func:`~gi.repository.Gio.TlsConnection.set_require_close_notify`. .. attribute:: HANDSHAKE The TLS handshake failed because the peer's certificate was not acceptable. .. attribute:: INAPPROPRIATE_FALLBACK The TLS handshake failed because the client sent the fallback SCSV, indicating a protocol downgrade attack. Since: 2.60 .. attribute:: MISC Miscellaneous TLS error .. attribute:: NOT_TLS The TLS handshake failed because the peer does not seem to be a TLS server. .. attribute:: UNAVAILABLE No TLS provider is available