xrpld
Loading...
Searching...
No Matches
make_SSLContext.h
1#pragma once
2
3#include <boost/asio/ssl/context.hpp>
4
5#include <memory>
6#include <string>
7
8namespace xrpl {
9
13std::shared_ptr<boost::asio::ssl::context>
14makeSslContext(std::string const& cipherList);
15
19std::shared_ptr<boost::asio::ssl::context>
21 std::string const& keyFile,
22 std::string const& certFile,
23 std::string const& chainFile,
24 std::string const& cipherList);
25
26} // namespace xrpl
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:5
std::shared_ptr< boost::asio::ssl::context > makeSslContextAuthed(std::string const &keyFile, std::string const &certFile, std::string const &chainFile, std::string const &cipherList)
Create an authenticated SSL context using the specified files.
std::shared_ptr< boost::asio::ssl::context > makeSslContext(std::string const &cipherList)
Create a self-signed SSL context that allows anonymous Diffie Hellman.