mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 21:20:19 +00:00
48e47c9048
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>
22 lines
417 B
C++
22 lines
417 B
C++
#ifndef CHECKCLOUDCONNECTION_H
|
|
#define CHECKCLOUDCONNECTION_H
|
|
|
|
#include <QObject>
|
|
#include <QNetworkReply>
|
|
#include <QSsl>
|
|
|
|
#include "checkcloudconnection.h"
|
|
|
|
class CheckCloudConnection : public QObject {
|
|
Q_OBJECT
|
|
public:
|
|
CheckCloudConnection(QObject *parent = 0);
|
|
bool checkServer();
|
|
private:
|
|
QNetworkReply *reply;
|
|
private
|
|
slots:
|
|
void sslErrors(QList<QSslError> errorList);
|
|
};
|
|
|
|
#endif // CHECKCLOUDCONNECTION_H
|