Better error handling for SSL

This commit is contained in:
2022-05-06 18:25:15 -04:00
parent c3e4588afc
commit d6aa216505
4 changed files with 33 additions and 41 deletions

View File

@@ -46,14 +46,14 @@ struct ErrClearErrorOnExit {
}
};
std::string errors_string(bool lastonly = true);
void assert_errors_empty();
// Return the OpenSSL error as a string.
std::string error_string();
void clear_all_errors();
SSL_CTX *new_context(int verify);
void ctx_load_dummy_cert(SSL_CTX *ctx);
void ctx_load_cert_from_directory(SSL_CTX *ctx, const std::string &dir);
} // namespace drvssl
#endif // DRIVER_SSL_HPP