mirror of
https://github.com/yuezk/GlobalProtect-openconnect.git
synced 2025-05-20 07:26:58 -04:00
Compare commits
2 Commits
45f9e5299a
...
b41f361619
Author | SHA1 | Date | |
---|---|---|---|
|
b41f361619 | ||
|
7c4a54bf7c |
@ -1,9 +1,6 @@
|
|||||||
|
|
||||||
#include "enhancedwebpage.h"
|
#include "enhancedwebpage.h"
|
||||||
#include <QWebEngineCertificateError>
|
|
||||||
#include <plog/Log.h>
|
|
||||||
|
|
||||||
bool EnhancedWebPage::certificateError(const QWebEngineCertificateError &certificateError) {
|
bool EnhancedWebPage::certificateError(const QWebEngineCertificateError &certificateError) {
|
||||||
LOGI << "An error occurred during certificate verification for" << certificateError.url() << "; " << certificateError.errorDescription();
|
return true;
|
||||||
return certificateError.deferred();
|
|
||||||
};
|
};
|
||||||
|
@ -3,10 +3,9 @@
|
|||||||
|
|
||||||
#include <QtWebEngineWidgets/qwebenginepage.h>
|
#include <QtWebEngineWidgets/qwebenginepage.h>
|
||||||
|
|
||||||
class EnhancedWebPage : public QWebEnginePage
|
class EnhancedWebPage : public QWebEnginePage {
|
||||||
{
|
|
||||||
protected:
|
protected:
|
||||||
bool certificateError(const QWebEngineCertificateError &certificateError) override;
|
bool certificateError(const QWebEngineCertificateError &certificateError);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // !ECHANCEDWEBPAG
|
#endif // !ECHANCEDWEBPAG
|
||||||
|
Loading…
x
Reference in New Issue
Block a user