SuperMarioOdysseyOnline/include/nn/ssl.h

38 lines
705 B
C
Raw Normal View History

2022-06-16 21:33:18 +00:00
/**
* @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();
};
};