4#ifndef QTLS_OPENSSL_P_H
5#define QTLS_OPENSSL_P_H
18#include <QtNetwork/private/qtnetworkglobal_p.h>
24#include <QtNetwork/qsslcertificate.h>
25#include <QtNetwork/qocspresponse.h>
27#include <QtCore/qsharedpointer.h>
28#include <QtCore/qbytearray.h>
29#include <QtCore/qglobal.h>
30#include <QtCore/qlist.h>
48 std::shared_ptr<QSslContext>
sslContext()
const override;
75 bool checkOcspStatus();
84 unsigned char *psk,
unsigned max_psk_len);
86 unsigned max_psk_len);
100 bool initSslContext();
101 void destroySslContext();
103 std::shared_ptr<QSslContext> sslContextPointer;
109 BIO *readBio =
nullptr;
110 BIO *writeBio =
nullptr;
119 bool systemOrSslErrorDetected =
false;
120 bool handshakeInterrupted =
false;
122 bool fetchAuthorityInformation =
false;
123 std::optional<QSslCertificate> caToFetch;
125 bool inSetAndEmitError =
false;
126 bool pendingFatalAlert =
false;
127 bool errorsReportedFromCallback =
false;
129 bool shutdown =
false;
131 bool inSslRead =
false;
132 bool renegotiated =
false;
The QSslCertificate class provides a convenient API for an X509 certificate.
The QSslCipher class represents an SSL cryptographic cipher.
The QSslSocket class provides an SSL encrypted socket for both clients and servers.
\macro QT_RESTRICTED_CAST_FROM_ASCII
void checkSettingSslContext(std::shared_ptr< QSslContext > tlsContext) override
unsigned pskClientTlsCallback(const char *hint, char *identity, unsigned max_identity_len, unsigned char *psk, unsigned max_psk_len)
void enableHandshakeContinuation() override
QByteArray ocspResponseDer
void alertMessageReceived(int encoded)
std::shared_ptr< QSslContext > sslContext() const override
int handleNewSessionTicket(SSL *connection)
QList< QOcspResponse > ocsps() const override
int emitErrorFromCallback(X509_STORE_CTX *ctx)
void disconnectFromHost() override
void alertMessageSent(int encoded)
void continueHandshake() override
unsigned pskServerTlsCallback(const char *identity, unsigned char *psk, unsigned max_psk_len)
void startClientEncryption() override
QSsl::SslProtocol sessionProtocol() const override
void init(QSslSocket *qObj, QSslSocketPrivate *dObj) override
void disconnected() override
void storePeerCertificates()
void cancelCAFetch() override
QList< QSslError > tlsErrors() const override
void startServerEncryption() override
void setRenegotiated(bool renegotiated)
QSslCipher sessionCipher() const override
SslProtocol
Describes the protocol of the cipher.
Combined button and popup list for selecting options.
Namespace containing onternal types that TLS backends implement.
DBusConnection * connection
GLdouble GLdouble GLdouble GLdouble q
static QT_BEGIN_NAMESPACE QVariant hint(QPlatformIntegration::StyleHint h)
QList< QSslCertificate > cert
[0]