331 "QSslConfiguration::setPeerVerifyDepth: cannot set negative depth of %d",
depth);
599 for (
const QString &cipherName : cipherNames) {
602 p->ciphers << cipher;
1106#if QT_CONFIG(dtls) || defined(Q_QDOC)
1114bool QSslConfiguration::dtlsCookieVerificationEnabled()
const
1124void QSslConfiguration::setDtlsCookieVerificationEnabled(
bool enable)
1158void QSslConfiguration::setDefaultDtlsConfiguration(
const QSslConfiguration &configuration)
1180 qCWarning(lcSsl,
"Enabling OCSP-stapling requires the feature 'ocsp'");
1235#if QT_CONFIG(openssl)
1239 qCWarning(lcSsl,
"This operation requires OpenSSL as TLS backend");
1273#if QT_CONFIG(openssl)
1277 qCWarning(lcSsl,
"Handling a missing certificate as a fatal error requires an OpenSSL backend");
bool isNull() const noexcept
Returns true if this byte array is null; otherwise returns false.
qsizetype size() const noexcept
bool isEmpty() const noexcept
T * data()
Returns a pointer to the shared data object.
The QSslCertificate class provides a convenient API for an X509 certificate.
static QList< QSslCertificate > fromPath(const QString &path, QSsl::EncodingFormat format=QSsl::Pem, PatternSyntax syntax=PatternSyntax::FixedString)
bool isNull() const
Returns true if this is a null certificate (i.e., a certificate with no contents); otherwise returns ...
The QSslCipher class represents an SSL cryptographic cipher.
bool isNull() const
Returns true if this is a null cipher; otherwise returns false.
static Q_AUTOTEST_EXPORT bool peerSessionWasShared(const QSslConfiguration &configuration)
const bool reportFromCallback
QSsl::SslProtocol protocol
QSsl::SslOptions sslOptions
QSslSocket::PeerVerifyMode peerVerifyMode
const bool dtlsCookieEnabled
QList< QSslEllipticCurve > ellipticCurves
bool allowRootCertOnDemandLoading
QByteArray nextNegotiatedProtocol
QByteArray preSharedKeyIdentityHint
QSslConfiguration::NextProtocolNegotiationStatus nextProtocolNegotiationStatus
QSslKey ephemeralServerKey
QList< QSslCertificate > caCertificates
int sslSessionTicketLifeTimeHint
static QSslConfiguration defaultConfiguration()
static void setDefaultDtlsConfiguration(const QSslConfiguration &configuration)
const bool ocspStaplingEnabled
static const QSsl::SslOptions defaultSslOptions
QMap< QByteArray, QVariant > backendConfig
QList< QSslCertificate > peerCertificateChain
static void setDefaultConfiguration(const QSslConfiguration &configuration)
QList< QByteArray > nextAllowedProtocols
QList< QSslCipher > ciphers
QSsl::SslProtocol sessionProtocol
QSslCertificate peerCertificate
QList< QSslCertificate > localCertificateChain
const bool missingCertIsFatal
QSslDiffieHellmanParameters dhParams
static QSslConfiguration defaultDtlsConfiguration()
The QSslConfiguration class holds the configuration and state of an SSL connection.
QList< QByteArray > allowedNextProtocols() const
QSslCertificate localCertificate() const
Returns the certificate to be presented to the peer during the SSL handshake process.
bool testSslOption(QSsl::SslOption option) const
void setSessionTicket(const QByteArray &sessionTicket)
void setEllipticCurves(const QList< QSslEllipticCurve > &curves)
QList< QSslCertificate > caCertificates() const
Returns this connection's CA certificate database.
void setPeerVerifyMode(QSslSocket::PeerVerifyMode mode)
Sets the verify mode to mode.
bool ocspStaplingEnabled() const
QList< QSslCertificate > localCertificateChain() const
Returns the certificate chain to be presented to the peer during the SSL handshake process.
QSslConfiguration & operator=(QSslConfiguration &&other) noexcept
void setMissingCertificateIsFatal(bool cannotRecover)
void setBackendConfigurationOption(const QByteArray &name, const QVariant &value)
QSslSocket::PeerVerifyMode peerVerifyMode() const
Returns the verify mode.
QSsl::SslProtocol protocol() const
Returns the protocol setting for this SSL configuration.
bool isNull() const
Returns true if this is a null QSslConfiguration object.
static const char ALPNProtocolHTTP2[]
QSslKey ephemeralServerKey() const
void setHandshakeMustInterruptOnError(bool interrupt)
QSslDiffieHellmanParameters diffieHellmanParameters() const
QSslConfiguration()
\variable QSslConfiguration::NextProtocolHttp1_1
QByteArray preSharedKeyIdentityHint() const
int sessionTicketLifeTimeHint() const
QSsl::SslProtocol sessionProtocol() const
Returns the socket's SSL/TLS protocol or UnknownProtocol if the connection isn't encrypted.
int peerVerifyDepth() const
Returns the maximum number of certificates in the peer's certificate chain to be checked during the S...
static void setDefaultConfiguration(const QSslConfiguration &configuration)
Sets the default SSL configuration to be used in new SSL connections to be configuration.
void setDiffieHellmanParameters(const QSslDiffieHellmanParameters &dhparams)
bool operator==(const QSslConfiguration &other) const
Returns true if this QSslConfiguration object is equal to other.
QSslCipher sessionCipher() const
Returns the socket's cryptographic \l {QSslCipher} {cipher}, or a null cipher if the connection isn't...
QByteArray nextNegotiatedProtocol() const
QSslKey privateKey() const
Returns the \l {QSslKey} {SSL key} assigned to this connection or a null key if none has been assigne...
void addCaCertificate(const QSslCertificate &certificate)
QList< QSslEllipticCurve > ellipticCurves() const
void setSslOption(QSsl::SslOption option, bool on)
Enables or disables an SSL compatibility option.
QList< QSslCipher > ciphers() const
Returns this connection's current cryptographic cipher suite.
void setBackendConfiguration(const QMap< QByteArray, QVariant > &backendConfiguration=QMap< QByteArray, QVariant >())
QByteArray sessionTicket() const
void setLocalCertificate(const QSslCertificate &certificate)
Sets the certificate to be presented to the peer during SSL handshake to be certificate.
QList< QSslCertificate > peerCertificateChain() const
Returns the peer's chain of digital certificates, starting with the peer's immediate certificate and ...
bool handshakeMustInterruptOnError() const
void setPreSharedKeyIdentityHint(const QByteArray &hint)
bool missingCertificateIsFatal() const
static QList< QSslCipher > supportedCiphers()
~QSslConfiguration()
Releases any resources held by QSslConfiguration.
bool addCaCertificates(const QString &path, QSsl::EncodingFormat format=QSsl::Pem, QSslCertificate::PatternSyntax syntax=QSslCertificate::PatternSyntax::FixedString)
QMap< QByteArray, QVariant > backendConfiguration() const
static QList< QSslCertificate > systemCaCertificates()
void setPrivateKey(const QSslKey &key)
Sets the connection's private \l {QSslKey} {key} to key.
void setAllowedNextProtocols(const QList< QByteArray > &protocols)
void setLocalCertificateChain(const QList< QSslCertificate > &localChain)
Sets the certificate chain to be presented to the peer during the SSL handshake to be localChain.
QSslCertificate peerCertificate() const
Returns the peer's digital certificate (i.e., the immediate certificate of the host you are connected...
static const char NextProtocolHttp1_1[]
void setCiphers(const QList< QSslCipher > &ciphers)
Sets the cryptographic cipher suite for this socket to ciphers, which must contain a subset of the ci...
void setPeerVerifyDepth(int depth)
Sets the maximum number of certificates in the peer's certificate chain to be checked during the SSL ...
static QSslConfiguration defaultConfiguration()
Returns the default SSL configuration to be used in new SSL connections.
void setOcspStaplingEnabled(bool enable)
NextProtocolNegotiationStatus
Describes the status of the Next Protocol Negotiation (NPN) or Application-Layer Protocol Negotiation...
@ NextProtocolNegotiationNone
static QList< QSslEllipticCurve > supportedEllipticCurves()
void setCaCertificates(const QList< QSslCertificate > &certificates)
Sets this socket's CA certificate database to be certificates.
void setProtocol(QSsl::SslProtocol protocol)
Sets the protocol setting for this configuration to be protocol.
NextProtocolNegotiationStatus nextProtocolNegotiationStatus() const
The QSslDiffieHellmanParameters class provides an interface for Diffie-Hellman parameters for servers...
static QSslDiffieHellmanParameters defaultParameters()
Returns the default QSslDiffieHellmanParameters used by QSslSocket.
The QSslKey class provides an interface for private and public keys.
bool isNull() const
Returns true if this is a null key; otherwise false.
static QList< QSslCipher > supportedCiphers()
static QList< QSslEllipticCurve > supportedEllipticCurves()
static QList< QSslCertificate > systemCaCertificates()
\macro QT_RESTRICTED_CAST_FROM_ASCII
EncodingFormat
Describes supported encoding formats for certificates and keys.
SslOption
Describes the options that can be used to control the details of SSL behaviour.
@ SslOptionDisableSessionPersistence
@ SslOptionDisableCompression
@ SslOptionDisableLegacyRenegotiation
@ SslOptionDisableEmptyFragments
SslProtocol
Describes the protocol of the cipher.
Combined button and popup list for selecting options.
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
#define qCWarning(category,...)
GLint GLenum GLsizei GLsizei GLsizei depth
GLenum GLenum GLsizei const GLuint GLboolean enabled
GLint GLsizei GLsizei GLenum format
GLsizei const GLchar *const * path
static QT_BEGIN_NAMESPACE QVariant hint(QPlatformIntegration::StyleHint h)