diff options
author | Hannes Rantzsch <[email protected]> | 2019-06-13 13:18:44 +0200 |
---|---|---|
committer | Hannes Rantzsch <[email protected]> | 2019-06-13 13:31:56 +0200 |
commit | 72c6245b4a27998dab66f849a2e471b24c494eb9 (patch) | |
tree | c75cef8c40a88eb0c9796142e4c5d7489ade2eca /doc/api_ref | |
parent | 54d1dcfaab369aa764b6dadce5310634da26a15e (diff) |
TLS::Context holds references rather than pointers
Parameters passed from TLS::Context to TLS::Client for initialization
are now held as references in the context. Ownership of these members is
thereby explicitly left with the user.
Co-authored-by: Tim Oesterreich <[email protected]>
Diffstat (limited to 'doc/api_ref')
-rw-r--r-- | doc/api_ref/tls.rst | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/doc/api_ref/tls.rst b/doc/api_ref/tls.rst index 90fe2f555..f78d59e90 100644 --- a/doc/api_ref/tls.rst +++ b/doc/api_ref/tls.rst @@ -1699,10 +1699,10 @@ It offers the following interface: A helper class to initialize and configure the Stream's underlying *native handle* (see :cpp:class:`TLS::Client`). - .. cpp:function:: Context(Credentials_Manager* credentialsManager, \ - RandomNumberGenerator* randomNumberGenerator, \ - Session_Manager* sessionManager, \ - Policy* policy, \ + .. cpp:function:: Context(Credentials_Manager& credentialsManager, \ + RandomNumberGenerator& randomNumberGenerator, \ + Session_Manager& sessionManager, \ + Policy& policy, \ Server_Information serverInfo = Server_Information()) Constructor for TLS::Context. @@ -1755,10 +1755,10 @@ Stream Code Example boost::asio::ip::tcp::resolver::iterator endpoint_iterator, http::request<http::string_body> req) : request_(req) - , ctx_(&credentials_mgr_, - &rng_, - &session_mgr_, - &policy_, + , ctx_(credentials_mgr_, + rng_, + session_mgr_, + policy_, Botan::TLS::Server_Information()) , stream_(io_context, ctx_) { |