citra-canary/src/core/hle/service/ssl_c.h

29 lines
656 B
C
Raw Normal View History

2014-10-30 01:38:33 +00:00
// Copyright 2014 Citra Emulator Project
2014-12-17 05:38:14 +00:00
// Licensed under GPLv2 or any later version
2014-10-30 01:38:33 +00:00
// Refer to the license.txt file included.
#pragma once
#include <random>
2014-10-30 01:38:33 +00:00
#include "core/hle/service/service.h"
namespace Service {
namespace SSL {
2014-10-30 01:38:33 +00:00
class SSL_C final : public ServiceFramework<SSL_C> {
2014-10-30 01:38:33 +00:00
public:
SSL_C();
2014-12-21 19:52:10 +00:00
private:
void Initialize(Kernel::HLERequestContext& ctx);
void GenerateRandomData(Kernel::HLERequestContext& ctx);
// TODO: Implement a proper CSPRNG in the future when actual security is needed
std::mt19937 rand_gen;
2014-10-30 01:38:33 +00:00
};
void InstallInterfaces(SM::ServiceManager& service_manager);
} // namespace SSL
} // namespace Service