mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-06-17 14:11:33 +00:00
Rename http folder to backend to better align with the classes inside
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
#pragma once
|
||||
|
||||
#include <QSslConfiguration>
|
||||
#include <QSslCertificate>
|
||||
#include <QSslKey>
|
||||
#include <QSettings>
|
||||
|
||||
class IdentityManager
|
||||
{
|
||||
public:
|
||||
QString
|
||||
getUniqueId();
|
||||
|
||||
QByteArray
|
||||
getCertificate();
|
||||
|
||||
QByteArray
|
||||
getPrivateKey();
|
||||
|
||||
QSslConfiguration
|
||||
getSslConfig();
|
||||
|
||||
static
|
||||
IdentityManager*
|
||||
get();
|
||||
|
||||
private:
|
||||
IdentityManager();
|
||||
|
||||
QSslCertificate
|
||||
getSslCertificate();
|
||||
|
||||
QSslKey
|
||||
getSslKey();
|
||||
|
||||
void
|
||||
createCredentials(QSettings& settings);
|
||||
|
||||
// Initialized in constructor
|
||||
QByteArray m_CachedPrivateKey;
|
||||
QByteArray m_CachedPemCert;
|
||||
|
||||
// Lazy initialized
|
||||
QString m_CachedUniqueId;
|
||||
QSslCertificate m_CachedSslCert;
|
||||
QSslKey m_CachedSslKey;
|
||||
|
||||
static IdentityManager* s_Im;
|
||||
};
|
||||
Reference in New Issue
Block a user