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