20#ifndef QSSLCONFIGURATION_H
21#define QSSLCONFIGURATION_H
23#include <QtNetwork/qtnetworkglobal.h>
24#include <QtCore/qmap.h>
25#include <QtCore/qshareddata.h>
26#include <QtNetwork/qsslsocket.h>
27#include <QtNetwork/qssl.h>
54 {
return !(*
this ==
other); }
65 int peerVerifyDepth()
const;
66 void setPeerVerifyDepth(
int depth);
93 bool addCaCertificates(
105 void setSessionTicket(
const QByteArray &sessionTicket);
106 int sessionTicketLifeTimeHint()
const;
108 QSslKey ephemeralServerKey()
const;
128#if QT_CONFIG(dtls) || defined(Q_QDOC)
129 bool dtlsCookieVerificationEnabled()
const;
136 bool handshakeMustInterruptOnError()
const;
137 void setHandshakeMustInterruptOnError(
bool interrupt);
139 bool missingCertificateIsFatal()
const;
140 void setMissingCertificateIsFatal(
bool cannotRecover);
142 void setOcspStaplingEnabled(
bool enable);
143 bool ocspStaplingEnabled()
const;
148 NextProtocolNegotiationUnsupported
155 NextProtocolNegotiationStatus nextProtocolNegotiationStatus()
const;
157 static const char ALPNProtocolHTTP2[];
158 static const char NextProtocolHttp1_1[];
The QSslCertificate class provides a convenient API for an X509 certificate.
The QSslCipher class represents an SSL cryptographic cipher.
The QSslConfiguration class holds the configuration and state of an SSL connection.
QSslConfiguration & operator=(QSslConfiguration &&other) noexcept
void swap(QSslConfiguration &other) noexcept
bool operator!=(const QSslConfiguration &other) const
Returns true if this QSslConfiguration differs from other.
NextProtocolNegotiationStatus
Describes the status of the Next Protocol Negotiation (NPN) or Application-Layer Protocol Negotiation...
@ NextProtocolNegotiationNone
@ NextProtocolNegotiationNegotiated
The QSslDiffieHellmanParameters class provides an interface for Diffie-Hellman parameters for servers...
Represents an elliptic curve for use by elliptic-curve cipher algorithms.
The QSslKey class provides an interface for private and public keys.
The QSslSocket class provides an SSL encrypted socket for both clients and servers.
\macro QT_RESTRICTED_CAST_FROM_ASCII
QTlsBackend is a factory class, providing implementations for the QSsl classes.
EncodingFormat
Describes supported encoding formats for certificates and keys.
SslOption
Describes the options that can be used to control the details of SSL behaviour.
SslProtocol
Describes the protocol of the cipher.
Combined button and popup list for selecting options.
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
GLint GLenum GLsizei GLsizei GLsizei depth
GLint GLsizei GLsizei GLenum format
GLsizei const GLchar *const * path
bool operator==(const QRandomGenerator &rng1, const QRandomGenerator &rng2)
static QT_BEGIN_NAMESPACE QVariant hint(QPlatformIntegration::StyleHint h)
config setDtlsCookieVerificationEnabled(false)
config setProtocol(QSsl::TlsV1_2)
tlsConfig setCiphers(QStringLiteral("DHE-RSA-AES256-SHA:DHE-DSS-AES256-SHA:AES256-SHA"))