summaryrefslogtreecommitdiffstats
path: root/checkcloudconnection.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-09-23 09:55:11 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-09-23 12:11:20 -0700
commit48e47c904842c83e7693680c7cd38775072d42bb (patch)
treee1400e10de977f5df50dbd0af2afbc9d19a45449 /checkcloudconnection.h
parent03b2674a13fefb1767e94a76f079e9361e5cf775 (diff)
downloadsubsurface-48e47c904842c83e7693680c7cd38775072d42bb.tar.gz
Windows XP doesn't contain a valid CA for our cloud certificate
This is the authentication check and cloud server availability check which are different from the one git does. The mechanism for overriding things is different from there, but this should work just as well. We intercept the SslErrors signal and if we get the known good hash for our certificate, we simply call it good. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'checkcloudconnection.h')
-rw-r--r--checkcloudconnection.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/checkcloudconnection.h b/checkcloudconnection.h
index 6c85203ac..58a412797 100644
--- a/checkcloudconnection.h
+++ b/checkcloudconnection.h
@@ -2,6 +2,8 @@
#define CHECKCLOUDCONNECTION_H
#include <QObject>
+#include <QNetworkReply>
+#include <QSsl>
#include "checkcloudconnection.h"
@@ -9,7 +11,12 @@ class CheckCloudConnection : public QObject {
Q_OBJECT
public:
CheckCloudConnection(QObject *parent = 0);
- static bool checkServer();
+ bool checkServer();
+private:
+ QNetworkReply *reply;
+private
+slots:
+ void sslErrors(QList<QSslError> errorList);
};
#endif // CHECKCLOUDCONNECTION_H