From fae2cfcbcbfa905daf07e09e49a3a9a2fbcce460 Mon Sep 17 00:00:00 2001 From: Christopher Kohlhoff Date: Tue, 2 Apr 2024 22:46:53 +1100 Subject: [PATCH] Fix typo in ssl::stream documentation. --- doc/reference.qbk | 2 +- include/boost/asio/ssl/stream.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 ... *