mirror of https://github.com/zeldaret/botw.git
26 lines
549 B
C++
26 lines
549 B
C++
/**
|
|
* @file ssl.h
|
|
* @brief SSL implementation.
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <nn/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();
|
|
}; // namespace ssl
|
|
}; // namespace nn
|