From a5e308ee0b45f3b5cb01e97ffc8ab78b13664be9 Mon Sep 17 00:00:00 2001 From: Never Date: Tue, 27 Mar 2018 19:19:32 +0200 Subject: updated tls client/server docs --- doc/manual/tls.rst | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'doc/manual') diff --git a/doc/manual/tls.rst b/doc/manual/tls.rst index e83fdcb24..82e44d6d1 100644 --- a/doc/manual/tls.rst +++ b/doc/manual/tls.rst @@ -400,7 +400,7 @@ The full code for a TLS client using BSD sockets is in `src/cli/tls_client.cpp` class Client_Credentials : public Botan::Credentials_Manager { public: - std::vector trusted_certificate_authorities( + std::vector trusted_certificate_authorities( const std::string& type, const std::string& context) override { @@ -409,7 +409,7 @@ The full code for a TLS client using BSD sockets is in `src/cli/tls_client.cpp` return { new Botan::Certificate_Store_In_Memory("cas") }; } - std::vector cert_chain( + std::vector cert_chain( const std::vector& cert_key_types, const std::string& type, const std::string& context) override @@ -551,11 +551,11 @@ The full code for a TLS server using asio is in `src/cli/tls_proxy.cpp`. class Server_Credentials : public Botan::Credentials_Manager { public: - Server_Credentials() : m_key(Botan::X509::load_key("botan.randombit.net.key")) + Server_Credentials() : m_key(Botan::PKCS8::load_key("botan.randombit.net.key")) { } - std::vector trusted_certificate_authorities( + std::vector trusted_certificate_authorities( const std::string& type, const std::string& context) override { @@ -565,7 +565,7 @@ The full code for a TLS server using asio is in `src/cli/tls_proxy.cpp`. return std::vector(); } - std::vector cert_chain( + std::vector cert_chain( const std::vector& cert_key_types, const std::string& type, const std::string& context) override -- cgit v1.2.3