mirror of
https://github.com/CraftyBoss/SuperMarioOdysseyOnline.git
synced 2024-11-28 14:13:04 +00:00
38 lines
No EOL
705 B
C++
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();
|
|
};
|
|
}; |