summaryrefslogtreecommitdiffstats
path: root/src/core/certificate_error_controller.h
diff options
context:
space:
mode:
authorMichal Klocek <michal.klocek@qt.io>2020-08-11 14:47:26 +0200
committerMichal Klocek <michal.klocek@qt.io>2020-08-28 13:40:50 +0200
commite88c84addde58d54293cfb14ee2f2fba2b2fed06 (patch)
treed6c22edb022a365f98c29ad10606c77d28dab18b /src/core/certificate_error_controller.h
parentc894e792b1664f0875e983fc3f3090e8ba9d36b4 (diff)
Remove duplicated enums for certificate errors
Add missing CertificateSymantecLegacy. Change-Id: I395f0c4a8c69fe3e0c303a13a3cbc077c123d26d Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'src/core/certificate_error_controller.h')
-rw-r--r--src/core/certificate_error_controller.h28
1 files changed, 3 insertions, 25 deletions
diff --git a/src/core/certificate_error_controller.h b/src/core/certificate_error_controller.h
index 828a62070..ec3e26806 100644
--- a/src/core/certificate_error_controller.h
+++ b/src/core/certificate_error_controller.h
@@ -54,6 +54,7 @@
#include "qtwebenginecoreglobal_p.h"
#include "base/callback.h"
#include "content/public/browser/certificate_request_result_type.h"
+#include "qwebenginecertificateerror.h"
#include <QtCore/QDateTime>
#include <QtCore/QScopedPointer>
#include <QtCore/QUrl>
@@ -74,30 +75,7 @@ public:
base::OnceCallback<void(content::CertificateRequestResultType)> callback);
~CertificateErrorController();
- // We can't use QSslError::SslErrors, because the error categories doesn't map.
- // Keep up to date with net/base/net_errors.h and net::IsCertificateError():
- enum CertificateError {
- SslPinnedKeyNotInCertificateChain = -150,
- CertificateCommonNameInvalid = -200,
- CertificateDateInvalid = -201,
- CertificateAuthorityInvalid = -202,
- CertificateContainsErrors = -203,
- CertificateNoRevocationMechanism = -204,
- CertificateUnableToCheckRevocation = -205,
- CertificateRevoked = -206,
- CertificateInvalid = -207,
- CertificateWeakSignatureAlgorithm = -208,
- CertificateNonUniqueName = -210,
- CertificateWeakKey = -211,
- CertificateNameConstraintViolation = -212,
- CertificateValidityTooLong = -213,
- CertificateTransparencyRequired = -214,
- CertificateSymantecLegacy = -215,
- CertificateKnownInterceptionBlocked = -217,
- CertificateErrorEnd = -218 // not an error, just an enum boundary
- };
-
- CertificateError error() const;
+ QWebEngineCertificateError::Type error() const;
QUrl url() const;
bool overridable() const;
QString errorString() const;
@@ -115,7 +93,7 @@ public:
void deactivate();
- CertificateErrorController::CertificateError m_certError;
+ QWebEngineCertificateError::Type m_certError;
const QUrl m_requestUrl;
QDateTime m_validExpiry;
bool m_overridable;