aboutsummaryrefslogtreecommitdiffstats
path: root/src/tls/tls_policy.h
diff options
context:
space:
mode:
authorlloyd <[email protected]>2011-12-31 03:26:57 +0000
committerlloyd <[email protected]>2011-12-31 03:26:57 +0000
commit52b9356cec6c5ad9a5d00a8ecbbad10a672787e8 (patch)
treedb360c3b39e550e24ad143c09ca087484d5cfd8d /src/tls/tls_policy.h
parent074ea8fdee34a668c57b19b474468a7e4d581567 (diff)
Some basic infrastructure pieces for SRP (policy, etc)
Diffstat (limited to 'src/tls/tls_policy.h')
-rw-r--r--src/tls/tls_policy.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/tls/tls_policy.h b/src/tls/tls_policy.h
index dd38f3574..48ff9185e 100644
--- a/src/tls/tls_policy.h
+++ b/src/tls/tls_policy.h
@@ -22,18 +22,21 @@ namespace Botan {
class BOTAN_DLL TLS_Policy
{
public:
- std::vector<u16bit> ciphersuites() const;
+ std::vector<u16bit> ciphersuites(bool have_srp) const;
virtual std::vector<byte> compression() const;
virtual u16bit choose_suite(const std::vector<u16bit>& client_suites,
bool rsa_ok,
- bool dsa_ok) const;
+ bool dsa_ok,
+ bool srp_ok) const;
virtual byte choose_compression(const std::vector<byte>& client) const;
virtual bool allow_static_rsa() const { return true; }
virtual bool allow_edh_rsa() const { return true; }
virtual bool allow_edh_dsa() const { return true; }
+ virtual bool allow_srp() const { return true; }
+
virtual bool require_client_auth() const { return false; }
virtual bool require_secure_renegotiation() const { return true; }
@@ -57,7 +60,8 @@ class BOTAN_DLL TLS_Policy
private:
virtual std::vector<u16bit> suite_list(bool use_rsa,
bool use_edh_rsa,
- bool use_edh_dsa) const;
+ bool use_edh_dsa,
+ bool use_srp) const;
};
}