diff options
author | Jack Lloyd <[email protected]> | 2017-04-27 11:18:33 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2017-04-27 11:18:33 -0400 |
commit | 8bfb889c27cf461f5575624d19a0ad39ef8d2e4e (patch) | |
tree | 8acf901e62f426a0385ba8463adb964e21970b7f | |
parent | 1c1bd38d73c32f7d34e1616ea52cf71714a9bf70 (diff) | |
parent | 7c632a5cc409f840045db1ca1806904393fe7522 (diff) |
Merge GH #1023 Add missing functions to TLS::Text_Policy
-rw-r--r-- | src/lib/tls/tls_policy.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/lib/tls/tls_policy.h b/src/lib/tls/tls_policy.h index ad95b7eb5..6ddfff749 100644 --- a/src/lib/tls/tls_policy.h +++ b/src/lib/tls/tls_policy.h @@ -502,6 +502,18 @@ class BOTAN_DLL Text_Policy : public Policy size_t minimum_signature_strength() const override { return get_len("minimum_signature_strength", Policy::minimum_signature_strength()); } + size_t dtls_default_mtu() const override + { return get_len("dtls_default_mtu", Policy::dtls_default_mtu()); } + + size_t dtls_initial_timeout() const override + { return get_len("dtls_initial_timeout", Policy::dtls_initial_timeout()); } + + size_t dtls_maximum_timeout() const override + { return get_len("dtls_maximum_timeout", Policy::dtls_maximum_timeout()); } + + bool require_cert_revocation_info() const override + { return get_bool("require_cert_revocation_info", Policy::require_cert_revocation_info()); } + bool hide_unknown_users() const override { return get_bool("hide_unknown_users", Policy::hide_unknown_users()); } @@ -532,7 +544,7 @@ class BOTAN_DLL Text_Policy : public Policy explicit Text_Policy(std::istream& in) : m_kv(read_cfg(in)) {} - private: + protected: std::vector<std::string> get_list(const std::string& key, const std::vector<std::string>& def) const |