boost::corosio::openssl_category
Return the error category for raw OpenSSL errors.
Synopsis
Declared in <boost/corosio/openssl_stream.hpp>
std::error_category const&
openssl_category() noexcept;
Description
Errors reported by openssl_stream that originate from the OpenSSL error queue (ERR_get_error) are assigned this category. Its message() decodes the packed OpenSSL error code using OpenSSL's own diagnostic strings, so printing such an error_code yields a readable description (for example, "certificate verify failed").
OpenSSL errors whose library is ERR_LIB_SYS are reported with std::system_category() instead, since their reason code is a genuine errno value.
Return Value
A reference to a static category object with name "corosio.openssl".
Created with MrDocs