#[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
§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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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
.