Clio  develop
The XRP Ledger API server.
Loading...
Searching...
No Matches
SslContext.hpp
1#pragma once
2
3#include "util/requests/Types.hpp"
4
5#include <boost/asio/ssl/context.hpp>
6#include <boost/beast/core/error.hpp>
7
8#include <expected>
9#include <optional>
10#include <string>
11
12namespace util::requests::impl {
13
14std::expected<boost::asio::ssl::context, RequestError>
15makeClientSslContext(std::optional<std::string> const& rootCertificate);
16
17std::expected<void, std::string>
18initClientSslContext();
19
20boost::asio::ssl::context&
21getClientSslContext();
22
23std::optional<std::string>
24sslErrorToString(boost::beast::error_code const& error);
25
26} // namespace util::requests::impl