aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNever <[email protected]>2018-03-27 19:19:32 +0200
committerNever <[email protected]>2018-03-27 19:19:32 +0200
commita5e308ee0b45f3b5cb01e97ffc8ab78b13664be9 (patch)
treeb5945cf277cf71f8f760415816504a02490e3baf
parent899f108970483f8741073c3a7c48bfb71e5c9b27 (diff)
updated tls client/server docs
-rw-r--r--doc/manual/tls.rst10
1 files changed, 5 insertions, 5 deletions
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<Certificate_Store*> trusted_certificate_authorities(
+ std::vector<Botan::Certificate_Store*> 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<X509_Certificate> cert_chain(
+ std::vector<Botan::X509_Certificate> cert_chain(
const std::vector<std::string>& 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<Certificate_Store*> trusted_certificate_authorities(
+ std::vector<Botan::Certificate_Store*> 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<Certificate_Store*>();
}
- std::vector<X509_Certificate> cert_chain(
+ std::vector<Botan::X509_Certificate> cert_chain(
const std::vector<std::string>& cert_key_types,
const std::string& type,
const std::string& context) override