From cab931d4e6eba7c09412f1b17800c255cee6e1c8 Mon Sep 17 00:00:00 2001 From: 刘群 <517067180@qq.com> Date: Tue, 7 May 2019 11:23:50 +0800 Subject: doc: Fix up the broken code example tls_client.cpp class Client_Credentials is not defined in namespace Botan Signed-off-by: Liu Qun <517067180@qq.com> --- doc/manual/tls.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/manual/tls.rst b/doc/manual/tls.rst index e93631a7c..3b54355de 100644 --- a/doc/manual/tls.rst +++ b/doc/manual/tls.rst @@ -447,7 +447,7 @@ The full code for a TLS client using BSD sockets is in `src/cli/tls_client.cpp` Callbacks callbacks; Botan::AutoSeeded_RNG rng; Botan::TLS::Session_Manager_In_Memory session_mgr(rng); - Botan::Client_Credentials creds; + Client_Credentials creds; Botan::TLS::Strict_Policy policy; // open the tls connection -- cgit v1.2.3 From ab271cbe7f43da858a6b5706a2fd6077b00cbbbd Mon Sep 17 00:00:00 2001 From: 刘群 <517067180@qq.com> Date: Tue, 7 May 2019 12:14:28 +0800 Subject: doc: Fix up another broken code example in tls.rst class Server_Credentials is not defined in namespace Botan either. Signed-off-by: Liu Qun <517067180@qq.com> --- doc/manual/tls.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/manual/tls.rst b/doc/manual/tls.rst index 3b54355de..bb363ca43 100644 --- a/doc/manual/tls.rst +++ b/doc/manual/tls.rst @@ -605,7 +605,7 @@ The full code for a TLS server using asio is in `src/cli/tls_proxy.cpp`. Callbacks callbacks; Botan::AutoSeeded_RNG rng; Botan::TLS::Session_Manager_In_Memory session_mgr(rng); - Botan::Client_Credentials creds; + Server_Credentials creds; Botan::TLS::Strict_Policy policy; // accept tls connection from client -- cgit v1.2.3