6.0.0-rc4Source

QSsl Namespace

The QSsl namespace holds enums shared by the TLS classes. More…

Header#include <QSsl>
CMaketarget_link_libraries(app PRIVATE Nt::Network)
ModuleNt Network C++ Classes

Public Types

Detailed Description

Differences from Qt

Only the TLS 1.2 and 1.3 protocols exist: older versions are insecure and are deliberately not offered. There is no SslOption enum.

Member Type Documentation

enum QSsl::AlternativeNameEntryType

Identifies an entry in a certificate's alternative names.

ConstantDescription
QSsl::EmailEntryAn email address.
QSsl::DnsEntryA DNS host name.
QSsl::IpAddressEntryAn IP address.

enum QSsl::EncodingFormat

Selects an encoding for certificates and keys.

ConstantDescription
QSsl::PemBase64 text, with header lines.
QSsl::DerBinary.

enum QSsl::KeyAlgorithm

Identifies a key's algorithm.

ConstantDescription
QSsl::OpaqueThe algorithm is not known.
QSsl::RsaRSA.
QSsl::DsaDSA.
QSsl::EcElliptic curve.
QSsl::DhDiffie-Hellman.

enum QSsl::KeyType

Selects a kind of key.

ConstantDescription
QSsl::PrivateKeyA private key.
QSsl::PublicKeyA public key.

enum QSsl::SslProtocol

Selects TLS versions.

ConstantDescription
QSsl::TlsV1_2TLS 1.2 only.
QSsl::AnyProtocolEvery supported version.
QSsl::SecureProtocolsEvery version considered secure. This is the default.
QSsl::TlsV1_2OrLaterTLS 1.2 or newer.
QSsl::TlsV1_3TLS 1.3 only.
QSsl::TlsV1_3OrLaterTLS 1.3 or newer.
QSsl::UnknownProtocolThe version is not known.