mirror of
https://github.com/moonlight-stream/moonlight-qt
synced 2025-01-06 08:18:46 +00:00
35 lines
481 B
C++
35 lines
481 B
C++
#pragma once
|
|
|
|
#include <QDir>
|
|
#include <QSslConfiguration>
|
|
|
|
class IdentityManager
|
|
{
|
|
public:
|
|
QString
|
|
getUniqueId();
|
|
|
|
QByteArray
|
|
getCertificate();
|
|
|
|
QByteArray
|
|
getPrivateKey();
|
|
|
|
QSslConfiguration
|
|
getSslConfig();
|
|
|
|
static
|
|
IdentityManager*
|
|
get();
|
|
|
|
private:
|
|
IdentityManager();
|
|
|
|
QDir m_RootDirectory;
|
|
|
|
QByteArray m_CachedPrivateKey;
|
|
QByteArray m_CachedPemCert;
|
|
QString m_CachedUniqueId;
|
|
|
|
static IdentityManager* s_Im;
|
|
};
|