QSsl Namespace
The QSsl namespace holds enums shared by the TLS classes. More…
| Header | #include <QSsl> |
|---|---|
| CMake | target_link_libraries(app PRIVATE Nt::Network) |
| Module | Nt Network C++ Classes |
Public Types
| enum | KeyType |
| enum | EncodingFormat |
| enum | KeyAlgorithm |
| enum | AlternativeNameEntryType |
| enum | SslProtocol |
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.
| Constant | Description |
|---|---|
QSsl::EmailEntry | An email address. |
QSsl::DnsEntry | A DNS host name. |
QSsl::IpAddressEntry | An IP address. |
enum QSsl::EncodingFormat
Selects an encoding for certificates and keys.
| Constant | Description |
|---|---|
QSsl::Pem | Base64 text, with header lines. |
QSsl::Der | Binary. |
enum QSsl::KeyAlgorithm
Identifies a key's algorithm.
| Constant | Description |
|---|---|
QSsl::Opaque | The algorithm is not known. |
QSsl::Rsa | RSA. |
QSsl::Dsa | DSA. |
QSsl::Ec | Elliptic curve. |
QSsl::Dh | Diffie-Hellman. |
enum QSsl::KeyType
Selects a kind of key.
| Constant | Description |
|---|---|
QSsl::PrivateKey | A private key. |
QSsl::PublicKey | A public key. |
enum QSsl::SslProtocol
Selects TLS versions.
| Constant | Description |
|---|---|
QSsl::TlsV1_2 | TLS 1.2 only. |
QSsl::AnyProtocol | Every supported version. |
QSsl::SecureProtocols | Every version considered secure. This is the default. |
QSsl::TlsV1_2OrLater | TLS 1.2 or newer. |
QSsl::TlsV1_3 | TLS 1.3 only. |
QSsl::TlsV1_3OrLater | TLS 1.3 or newer. |
QSsl::UnknownProtocol | The version is not known. |