diff --git a/doc/reference.qbk b/doc/reference.qbk index e369bf7c..c6482496 100644 --- a/doc/reference.qbk +++ b/doc/reference.qbk @@ -157319,7 +157319,7 @@ This function may be used to obtain the underlying implementation of the context The `native_handle()` function returns a pointer of type `SSL*` that is suitable for passing to functions such as `SSL_get_verify_result` and `SSL_get_peer_certificate:` - boost::asio::ssl::stream sock(my_context, ctx); + boost::asio::ssl::stream sock(io_ctx, ctx); // ... establish connection and perform handshake ... diff --git a/include/boost/asio/ssl/stream.hpp b/include/boost/asio/ssl/stream.hpp index a68919e5..30660c8a 100644 --- a/include/boost/asio/ssl/stream.hpp +++ b/include/boost/asio/ssl/stream.hpp @@ -188,7 +188,7 @@ public: * suitable for passing to functions such as @c SSL_get_verify_result and * @c SSL_get_peer_certificate: * @code - * boost::asio::ssl::stream sock(my_context, ctx); + * boost::asio::ssl::stream sock(io_ctx, ctx); * * // ... establish connection and perform handshake ... *