SuperMarioOdysseyOnline/include/nn/ssl.h
2022-06-16 14:33:18 -07:00

38 lines
No EOL
705 B
C++

/**
* @file ssl.h
* @brief SSL implementation.
*/
#pragma once
#include "types.h"
namespace nn
{
namespace ssl
{
enum CertificateFormat
{
PEM = 0x01,
DER = 0x02
};
class Context
{
public:
enum SslVersion
{
Auto = 0x01,
v10 = 0x08,
v11 = 0x10,
v12 = 0x20
};
Result Create(nn::ssl::Context::SslVersion version);
Result ImportServerPki(u64 *, char const *certData, u32 certSize, nn::ssl::CertificateFormat certFormat);
};
Result Initialize();
Result Finalize();
};
};