mirror of
https://github.com/XRPLF/rippled.git
synced 2026-07-23 15:10:34 +00:00
27 lines
577 B
C++
27 lines
577 B
C++
#pragma once
|
|
|
|
#include <boost/asio/ssl/context.hpp>
|
|
|
|
#include <memory>
|
|
#include <string>
|
|
|
|
namespace xrpl {
|
|
|
|
/**
|
|
* Create a self-signed SSL context that allows anonymous Diffie Hellman.
|
|
*/
|
|
std::shared_ptr<boost::asio::ssl::context>
|
|
makeSslContext(std::string const& cipherList);
|
|
|
|
/**
|
|
* Create an authenticated SSL context using the specified files.
|
|
*/
|
|
std::shared_ptr<boost::asio::ssl::context>
|
|
makeSslContextAuthed(
|
|
std::string const& keyFile,
|
|
std::string const& certFile,
|
|
std::string const& chainFile,
|
|
std::string const& cipherList);
|
|
|
|
} // namespace xrpl
|