mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-20 19:11:39 -06:00
dbhub: Add basic HTTPS support
This adds basic support for fetching databases via HTTPS using client certificates. You can include CA certificates to verify any responses from a server. For now, one test CA certificate is included but it's easy to add more. It's also possible to authentify the client using a client certificate, a client key and a password. As of this commit all three items are hardcoded. It's still possible to access any remote database via HTTP but if a request URL starts with 'https' this new mechanism will be used. All certificates, keys, and password included in here are taken from my node.js test server repository. They will be replaced soon-ish.
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
|
||||
#include <QObject>
|
||||
#include <QProgressDialog>
|
||||
#include <QSslConfiguration>
|
||||
|
||||
class QNetworkAccessManager;
|
||||
class QString;
|
||||
@@ -17,6 +18,8 @@ public:
|
||||
RemoteDatabase();
|
||||
virtual ~RemoteDatabase();
|
||||
|
||||
void reloadSettings();
|
||||
|
||||
void fetchDatabase(const QString& url);
|
||||
|
||||
signals:
|
||||
@@ -31,6 +34,7 @@ private:
|
||||
QNetworkAccessManager* m_manager;
|
||||
QProgressDialog m_progress;
|
||||
QNetworkReply* m_currentReply;
|
||||
QSslConfiguration m_sslConfiguration;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user