#[non_exhaustive]pub enum TlsError {
Unavailable,
Misc,
BadCertificate,
NotTls,
Handshake,
CertificateRequired,
Eof,
InappropriateFallback,
BadCertificatePassword,
}
Expand description
An error code used with G_TLS_ERROR
in a #GError returned from a
TLS-related routine.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
No TLS provider is available
Misc
Miscellaneous TLS error
BadCertificate
The certificate presented could not be parsed or failed validation.
NotTls
The TLS handshake failed because the peer does not seem to be a TLS server.
Handshake
The TLS handshake failed because the peer’s certificate was not acceptable.
CertificateRequired
The TLS handshake failed because the server requested a client-side certificate, but none was provided. See g_tls_connection_set_certificate().
Eof
The TLS connection was closed without proper notice, which may indicate an attack. See g_tls_connection_set_require_close_notify().
InappropriateFallback
The TLS handshake failed because the client sent the fallback SCSV, indicating a protocol downgrade attack. Since: 2.60
BadCertificatePassword
v2_72
only.The certificate failed to load because a password was incorrect. Since: 2.72
Trait Implementations§
Source§impl ErrorDomain for TlsError
impl ErrorDomain for TlsError
Source§impl<'a> FromValue<'a> for TlsError
impl<'a> FromValue<'a> for TlsError
Source§type Checker = GenericValueTypeChecker<TlsError>
type Checker = GenericValueTypeChecker<TlsError>
Source§unsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Value
. Read moreSource§impl HasParamSpec for TlsError
impl HasParamSpec for TlsError
Source§impl Ord for TlsError
impl Ord for TlsError
Source§impl PartialOrd for TlsError
impl PartialOrd for TlsError
Source§impl StaticType for TlsError
impl StaticType for TlsError
Source§fn static_type() -> Type
fn static_type() -> Type
Self
.impl Copy for TlsError
impl Eq for TlsError
impl StructuralPartialEq for TlsError
Auto Trait Implementations§
impl Freeze for TlsError
impl RefUnwindSafe for TlsError
impl Send for TlsError
impl Sync for TlsError
impl Unpin for TlsError
impl UnwindSafe for TlsError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoClosureReturnValue for T
impl<T> IntoClosureReturnValue for T
fn into_closure_return_value(self) -> Option<Value>
Source§impl<T> PropertyGet for Twhere
T: HasParamSpec,
impl<T> PropertyGet for Twhere
T: HasParamSpec,
Source§impl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere
T: StaticType,
Source§fn ensure_type()
fn ensure_type()
Source§impl<T> ToSendValue for T
impl<T> ToSendValue for T
Source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
SendValue
clone of self
.