xbot/openssl_utils.hpp

10 lines
282 B
C++
Raw Normal View History

2025-01-29 18:41:28 -08:00
#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;