Changeset View
Changeset View
Standalone View
Standalone View
src/core/ktcpsocket.h
Show All 20 Lines | |||||
21 | #ifndef KTCPSOCKET_H | 21 | #ifndef KTCPSOCKET_H | ||
22 | #define KTCPSOCKET_H | 22 | #define KTCPSOCKET_H | ||
23 | 23 | | |||
24 | #include <QSslSocket> | 24 | #include <QSslSocket> | ||
25 | #include <QSslConfiguration> | 25 | #include <QSslConfiguration> | ||
26 | 26 | | |||
27 | #include "kiocore_export.h" | 27 | #include "kiocore_export.h" | ||
28 | 28 | | |||
29 | class QNetworkReply; | ||||
30 | | ||||
29 | /* | 31 | /* | ||
30 | Notes on QCA::TLS compatibility | 32 | Notes on QCA::TLS compatibility | ||
31 | In order to check for all validation problems as far as possible we need to use: | 33 | In order to check for all validation problems as far as possible we need to use: | ||
32 | Validity QCA::TLS::peerCertificateValidity() | 34 | Validity QCA::TLS::peerCertificateValidity() | ||
33 | TLS::IdentityResult QCA::TLS::peerIdentityResult() | 35 | TLS::IdentityResult QCA::TLS::peerIdentityResult() | ||
34 | CertificateChain QCA::TLS::peerCertificateChain().validate() - to find the failing cert! | 36 | CertificateChain QCA::TLS::peerCertificateChain().validate() - to find the failing cert! | ||
35 | TLS::Error QCA::TLS::errorCode() - for more generic (but stil SSL) errors | 37 | TLS::Error QCA::TLS::errorCode() - for more generic (but stil SSL) errors | ||
36 | */ | 38 | */ | ||
▲ Show 20 Lines • Show All 368 Lines • ▼ Show 20 Line(s) | 402 | public: | |||
405 | /** | 407 | /** | ||
406 | * Create an instance and initialize it with SSL error data from @p socket. | 408 | * Create an instance and initialize it with SSL error data from @p socket. | ||
407 | */ | 409 | */ | ||
408 | KSslErrorUiData(const KTcpSocket *socket); | 410 | KSslErrorUiData(const KTcpSocket *socket); | ||
409 | /** | 411 | /** | ||
410 | * Create an instance and initialize it with SSL error data from @p socket. | 412 | * Create an instance and initialize it with SSL error data from @p socket. | ||
411 | */ | 413 | */ | ||
412 | KSslErrorUiData(const QSslSocket *socket); | 414 | KSslErrorUiData(const QSslSocket *socket); | ||
415 | /** | ||||
416 | * Create an instance and initialize it with SSL error data from @p reply. | ||||
dfaure: @since 5.62 | |||||
417 | * @since 5.62 | ||||
418 | */ | ||||
419 | KSslErrorUiData(const QNetworkReply *reply, const QList<QSslError> &sslErrors); | ||||
420 | | ||||
413 | KSslErrorUiData(const KSslErrorUiData &other); | 421 | KSslErrorUiData(const KSslErrorUiData &other); | ||
414 | KSslErrorUiData &operator=(const KSslErrorUiData &); | 422 | KSslErrorUiData &operator=(const KSslErrorUiData &); | ||
415 | /** | 423 | /** | ||
416 | * Destructor | 424 | * Destructor | ||
417 | * @since 4.7 | 425 | * @since 4.7 | ||
418 | */ | 426 | */ | ||
419 | ~KSslErrorUiData(); | 427 | ~KSslErrorUiData(); | ||
420 | class Private; | 428 | class Private; | ||
421 | private: | 429 | private: | ||
422 | friend class Private; | 430 | friend class Private; | ||
423 | Private *const d; | 431 | Private *const d; | ||
424 | }; | 432 | }; | ||
425 | 433 | | |||
426 | #endif // KTCPSOCKET_H | 434 | #endif // KTCPSOCKET_H |
@since 5.62