xbot/openssl_utils.hpp
2025-01-29 18:41:28 -08:00

10 lines
282 B
C++

#pragma once
#include "ref.hpp"
#include <string_view>
auto log_openssl_errors(const std::string_view prefix) -> void;
auto key_from_file(const std::string &filename, const std::string_view password) -> EVP_PKEY_Ref;
auto cert_from_file(const std::string &filename) -> X509_Ref;