Boost C++ 库

...世界上最受推崇、设计最精良的 C++ 库项目之一。 Herb SutterAndrei Alexandrescu, C++ Coding Standards

ssl::context::use_certificate (2 of 2 overloads) - Boost C++ 函数库
PrevUpHomeNext

使用内存缓冲区中的证书。

void use_certificate(
    const const_buffer & certificate,
    file_format format,
    boost::system::error_code & ec);

此函数用于从缓冲区加载证书到上下文中。

参数

certificate

包含证书的缓冲区。

format

证书格式(ASN.1 或 PEM)。

ec

用于指示发生何种错误(如果有)。

备注

调用 SSL_CTX_use_certificate 或 SSL_CTX_use_certificate_ASN1。


PrevUpHomeNext