mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Resolve memory leaks from make_SSLContext:
* Move into ssl functions that release the unique ptr * Use string ref in make_SSLContext * Resolve memory leaks
This commit is contained in:
@@ -28,15 +28,15 @@ namespace ripple {
|
||||
/** Create a self-signed SSL context that allows anonymous Diffie Hellman. */
|
||||
std::shared_ptr<boost::asio::ssl::context>
|
||||
make_SSLContext(
|
||||
std::string cipherList);
|
||||
std::string const& cipherList);
|
||||
|
||||
/** Create an authenticated SSL context using the specified files. */
|
||||
std::shared_ptr<boost::asio::ssl::context>
|
||||
make_SSLContextAuthed (
|
||||
std::string keyFile,
|
||||
std::string certFile,
|
||||
std::string chainFile,
|
||||
std::string cipherList);
|
||||
std::string const& keyFile,
|
||||
std::string const& certFile,
|
||||
std::string const& chainFile,
|
||||
std::string const& cipherList);
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user