QSslSocket Proxy Page

Types

(since 6.0) enum class AlertLevel { Warning, Fatal, Unknown }
(since 6.0) enum class AlertType { CloseNotify, UnexpectedMessage, BadRecordMac, RecordOverflow, DecompressionFailure, …, UnknownAlertMessage }
(since 6.1) enum class ImplementedClass { Key, Certificate, Socket, DiffieHellman, EllipticCurve, …, DtlsCookie }
(since 6.1) enum class SupportedFeature { CertificateVerification, ClientSideAlpn, ServerSideAlpn, Ocsp, Psk, …, Alerts }

Type Documentation

[since 6.0] enum class AlertLevel

Describes the level of an alert message

This enum describes the level of an alert message that was sent or received.

ConstantValueDescription
QSslSocket::AlertLevel::Warning0Non-fatal alert message
QSslSocket::AlertLevel::Fatal1Fatal alert message, the underlying backend will handle such an alert properly and close the connection.
QSslSocket::AlertLevel::Unknown2An alert of unknown level of severity.

This enum was introduced in Qt 6.0.

[since 6.0] enum class AlertType

Enumerates possible codes that an alert message can have

See RFC 8446, section 6 for the possible values and their meaning.

ConstantValueDescription
QSslSocket::AlertType::CloseNotify0,
QSslSocket::AlertType::UnexpectedMessage10 
QSslSocket::AlertType::BadRecordMac20 
QSslSocket::AlertType::RecordOverflow22 
QSslSocket::AlertType::DecompressionFailure30 
QSslSocket::AlertType::HandshakeFailure40 
QSslSocket::AlertType::NoCertificate41 
QSslSocket::AlertType::BadCertificate42 
QSslSocket::AlertType::UnsupportedCertificate43 
QSslSocket::AlertType::CertificateRevoked44 
QSslSocket::AlertType::CertificateExpired45 
QSslSocket::AlertType::CertificateUnknown46 
QSslSocket::AlertType::IllegalParameter47 
QSslSocket::AlertType::UnknownCa48 
QSslSocket::AlertType::AccessDenied49 
QSslSocket::AlertType::DecodeError50 
QSslSocket::AlertType::DecryptError51 
QSslSocket::AlertType::ExportRestriction60 
QSslSocket::AlertType::ProtocolVersion70 
QSslSocket::AlertType::InsufficientSecurity71 
QSslSocket::AlertType::InternalError80 
QSslSocket::AlertType::InappropriateFallback86 
QSslSocket::AlertType::UserCancelled90 
QSslSocket::AlertType::NoRenegotiation100 
QSslSocket::AlertType::MissingExtension109 
QSslSocket::AlertType::UnsupportedExtension110 
QSslSocket::AlertType::CertificateUnobtainable111 
QSslSocket::AlertType::UnrecognizedName112 
QSslSocket::AlertType::BadCertificateStatusResponse113 
QSslSocket::AlertType::BadCertificateHashValue114 
QSslSocket::AlertType::UnknownPskIdentity115 
QSslSocket::AlertType::CertificateRequired116 
QSslSocket::AlertType::NoApplicationProtocol120 
QSslSocket::AlertType::UnknownAlertMessage255 

This enum was introduced in Qt 6.0.

[since 6.1] enum class ImplementedClass

Enumerates classes that a TLS backend implements

In QtNetwork, some classes have backend-specific implementation and thus can be left unimplemented. Enumerators in this enum indicate, which class has a working implementation in the backend.

ConstantValueDescription
QSslSocket::ImplementedClass::Key0Class QSslKey.
QSslSocket::ImplementedClass::Certificate1Class QSslCertificate.
QSslSocket::ImplementedClass::Socket2Class QSslSocket.
QSslSocket::ImplementedClass::DiffieHellman3Class QSslDiffieHellmanParameters.
QSslSocket::ImplementedClass::EllipticCurve4Class QSslEllipticCurve.
QSslSocket::ImplementedClass::Dtls5Class QDtls.
QSslSocket::ImplementedClass::DtlsCookie6Class QDtlsClientVerifier.

This enum was introduced in Qt 6.1.

[since 6.1] enum class SupportedFeature

Enumerates possible features that a TLS backend supports

In QtNetwork TLS-related classes have public API, that may be left unimplemented by some backend, for example, our SecureTransport backend does not support server-side ALPN. Enumerators from SupportedFeature enum indicate that a particular feature is supported.

ConstantValueDescription
QSslSocket::SupportedFeature::CertificateVerification0Indicates that QSslCertificate::verify() is implemented by the backend.
QSslSocket::SupportedFeature::ClientSideAlpn1Client-side ALPN (Application Layer Protocol Negotiation).
QSslSocket::SupportedFeature::ServerSideAlpn2Server-side ALPN.
QSslSocket::SupportedFeature::Ocsp3OCSP stapling (Online Certificate Status Protocol).
QSslSocket::SupportedFeature::Psk4Pre-shared keys.
QSslSocket::SupportedFeature::SessionTicket5Session tickets.
QSslSocket::SupportedFeature::Alerts6Information about alert messages sent and received.

This enum was introduced in Qt 6.1.