365 "QSslConfiguration::setPeerVerifyDepth: cannot set negative depth of %d",
depth);
636 for (
const QString &cipherName : cipherNames) {
639 p->ciphers << cipher;
1135 #if QT_CONFIG(dtls) || defined(Q_CLANG_QDOC)
1143 bool QSslConfiguration::dtlsCookieVerificationEnabled()
const
1187 void QSslConfiguration::setDefaultDtlsConfiguration(
const QSslConfiguration &configuration)
1209 qCWarning(lcSsl,
"Enabling OCSP-stapling requires the feature 'ocsp'");
1264 #if QT_CONFIG(openssl)
1268 qCWarning(lcSsl,
"This operation requires OpenSSL as TLS backend");
1302 #if QT_CONFIG(openssl)
1306 qCWarning(lcSsl,
"Handling a missing certificate as a fatal error requires an OpenSSL backend");
The QByteArray class provides an array of bytes.
bool isNull() const noexcept
bool isEmpty() const noexcept
qsizetype count() const noexcept
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)
The QSslCipher class represents an SSL cryptographic cipher.
The QSslConfiguration class holds the configuration and state of an SSL connection.
QList< QByteArray > allowedNextProtocols() const
QSslCertificate localCertificate() const
bool testSslOption(QSsl::SslOption option) const
void setSessionTicket(const QByteArray &sessionTicket)
void setEllipticCurves(const QList< QSslEllipticCurve > &curves)
QSslConfiguration & operator=(QSslConfiguration &&other) noexcept
QList< QSslCertificate > caCertificates() const
void setPeerVerifyMode(QSslSocket::PeerVerifyMode mode)
bool ocspStaplingEnabled() const
QList< QSslCertificate > localCertificateChain() const
void setMissingCertificateIsFatal(bool cannotRecover)
void setBackendConfigurationOption(const QByteArray &name, const QVariant &value)
QSslSocket::PeerVerifyMode peerVerifyMode() const
QSsl::SslProtocol protocol() const
static const char ALPNProtocolHTTP2[]
QSslKey ephemeralServerKey() const
void setHandshakeMustInterruptOnError(bool interrupt)
QSslDiffieHellmanParameters diffieHellmanParameters() const
QSslConfiguration()
The value used for negotiating HTTP 1.1 during the Next Protocol Negotiation.
QByteArray preSharedKeyIdentityHint() const
int sessionTicketLifeTimeHint() const
QSsl::SslProtocol sessionProtocol() const
int peerVerifyDepth() const
static void setDefaultConfiguration(const QSslConfiguration &configuration)
void setDiffieHellmanParameters(const QSslDiffieHellmanParameters &dhparams)
bool operator==(const QSslConfiguration &other) const
QSslCipher sessionCipher() const
QByteArray nextNegotiatedProtocol() const
QSslKey privateKey() const
void addCaCertificate(const QSslCertificate &certificate)
QList< QSslEllipticCurve > ellipticCurves() const
void setSslOption(QSsl::SslOption option, bool on)
QList< QSslCipher > ciphers() const
void setBackendConfiguration(const QMap< QByteArray, QVariant > &backendConfiguration=QMap< QByteArray, QVariant >())
QByteArray sessionTicket() const
void setLocalCertificate(const QSslCertificate &certificate)
QList< QSslCertificate > peerCertificateChain() const
bool handshakeMustInterruptOnError() const
void setPreSharedKeyIdentityHint(const QByteArray &hint)
bool missingCertificateIsFatal() const
static QList< QSslCipher > supportedCiphers()
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)
void setAllowedNextProtocols(const QList< QByteArray > &protocols)
void setLocalCertificateChain(const QList< QSslCertificate > &localChain)
QSslCertificate peerCertificate() const
static const char NextProtocolHttp1_1[]
void setCiphers(const QList< QSslCipher > &ciphers)
void setPeerVerifyDepth(int depth)
static QSslConfiguration defaultConfiguration()
void setOcspStaplingEnabled(bool enable)
NextProtocolNegotiationStatus
@ NextProtocolNegotiationNone
static QList< QSslEllipticCurve > supportedEllipticCurves()
void setCaCertificates(const QList< QSslCertificate > &certificates)
void setProtocol(QSsl::SslProtocol protocol)
NextProtocolNegotiationStatus nextProtocolNegotiationStatus() const
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 QSslDiffieHellmanParameters class provides an interface for Diffie-Hellman parameters for servers...
static QSslDiffieHellmanParameters defaultParameters()
The QSslKey class provides an interface for private and public keys.
static QList< QSslCipher > supportedCiphers()
static QList< QSslEllipticCurve > supportedEllipticCurves()
static QList< QSslCertificate > systemCaCertificates()
The QString class provides a Unicode character string.
The QVariant class acts like a union for the most common Qt data types.
@ SslOptionDisableSessionPersistence
@ SslOptionDisableCompression
@ SslOptionDisableLegacyRenegotiation
@ SslOptionDisableEmptyFragments
EGLOutputLayerEXT EGLint EGLAttrib value
#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
config setDtlsCookieVerificationEnabled(false)
The QLatin1Char class provides an 8-bit ASCII/Latin-1 character.