8#include "ksslerroruidata.h"
9#include "ksslerroruidata_p.h"
11#include <QHostAddress>
12#include <QNetworkReply>
25 d->certificateChain = socket->peerCertificateChain();
26 d->sslErrors = socket->sslHandshakeErrors();
27 d->ip = socket->peerAddress().toString();
28 d->host = socket->peerName();
29 if (socket->isEncrypted()) {
30 d->sslProtocol = socket->sessionCipher().protocolString();
32 d->cipher = socket->sessionCipher().name();
33 d->usedBits = socket->sessionCipher().usedBits();
34 d->bits = socket->sessionCipher().supportedBits();
40 const auto sslConfig = reply->sslConfiguration();
41 d->certificateChain = sslConfig.peerCertificateChain();
42 d->sslErrors = sslErrors;
43 d->host = reply->
request().url().host();
44 d->sslProtocol = sslConfig.sessionCipher().protocolString();
45 d->cipher = sslConfig.sessionCipher().name();
46 d->usedBits = sslConfig.sessionCipher().usedBits();
47 d->bits = sslConfig.sessionCipher().supportedBits();
51 : d(new Private(*other.d))
This class can hold all the necessary data from a QSslSocket or QNetworkReply to ask the user to cont...
KSslErrorUiData()
Default construct an instance with no useful data.
~KSslErrorUiData()
Destructor.
QNetworkRequest request() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 29 2024 11:50:33 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.