Sese Framework
x.y.z
A cross-platform framework
|
SSL 上下文 更多...
#include <SSLContext.h>
Public 类型 | |
using | Ptr = std::shared_ptr<SSLContext> |
using | Socket = sese::net::Socket |
Public 成员函数 | |
SSLContext (const void *method) noexcept | |
~SSLContext () noexcept | |
void * | getContext () const noexcept |
bool | importCertFile (const char *file) const noexcept |
从文件中加载证书 | |
bool | importPrivateKeyFile (const char *file) const noexcept |
从文件中加载私钥 | |
bool | authPrivateKey () const noexcept |
校验证书和私钥 | |
Socket::Ptr | newSocketPtr (Socket::Family family, int32_t flags) |
从当前上下文中创建一个 TCP Socket | |
void * | release () noexcept |
释放当前对象的所有权 | |
std::unique_ptr< SSLContext > | copy () const noexcept |
静态 Public 成员函数 | |
static ErrorCode | getErrorCode () noexcept |
Private 成员函数 | |
SSLContext ()=default | |
Private 属性 | |
void * | context = nullptr |
SSL 上下文
using sese::security::SSLContext::Ptr = std::shared_ptr<SSLContext> |
|
explicitnoexcept |
|
noexcept |
引用了 context.
|
privatedefault |
|
noexcept |
|
noexcept |
|
nodiscardnoexcept |
引用了 context.
|
staticnoexcept |
|
noexcept |
从文件中加载证书
file | 证书文件路径 |
|
noexcept |
从文件中加载私钥
file | 私钥文件路径 |
sese::net::Socket::Ptr SSLContext::newSocketPtr | ( | Socket::Family | family, |
int32_t | flags ) |
|
noexcept |
释放当前对象的所有权
引用了 context.
|
private |
被这些函数引用 authPrivateKey(), copy(), getContext(), newSocketPtr(), release() , 以及 ~SSLContext().