aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorlloyd <[email protected]>2013-12-05 02:10:47 +0000
committerlloyd <[email protected]>2013-12-05 02:10:47 +0000
commit8fedb5ba83acc84c62f8f20ac962c0acf643e3a8 (patch)
tree5fb18bd779d98c3b5891885ce51f885c263854e8 /doc
parent9e4c7395029bb672d208c9c5cb2936ba397cbf20 (diff)
Turn off asking for client cert in TLS server example
Diffstat (limited to 'doc')
-rw-r--r--doc/examples/credentials.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/doc/examples/credentials.h b/doc/examples/credentials.h
index d87fab7ba..c88d98bfd 100644
--- a/doc/examples/credentials.h
+++ b/doc/examples/credentials.h
@@ -51,8 +51,16 @@ class Credentials_Manager_Simple : public Botan::Credentials_Manager
trusted_certificate_authorities(const std::string& type,
const std::string& hostname)
{
- // can very based on hostname eg for pinning
- return m_certstores;
+ if(type == "tls-server")
+ {
+ // don't ask for client cert
+ return std::vector<Botan::Certificate_Store*>();
+ }
+
+ else
+ {
+ return m_certstores;
+ }
}
void verify_certificate_chain(