moonlight-qt/app/http/identitymanager.h
2018-06-26 19:03:55 -07:00

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;
};