aboutsummaryrefslogtreecommitdiffstats
path: root/src/ssl
diff options
context:
space:
mode:
authorlloyd <lloyd@randombit.net>2010-11-29 15:30:52 +0000
committerlloyd <lloyd@randombit.net>2010-11-29 15:30:52 +0000
commit006bb1af46d82386d0d2a8864b17918030a35da4 (patch)
tree2b068edb835885d952b2dafe34678e690565e0d6 /src/ssl
parent3d87cc7f75b1d308e3411b8c3df81f40b9ab4d1a (diff)
Make TLS_Policy::check_cert pure virtual
Diffstat (limited to 'src/ssl')
-rw-r--r--src/ssl/tls_policy.cpp8
-rw-r--r--src/ssl/tls_policy.h9
2 files changed, 8 insertions, 9 deletions
diff --git a/src/ssl/tls_policy.cpp b/src/ssl/tls_policy.cpp
index 38fcf58cc..b73ff7850 100644
--- a/src/ssl/tls_policy.cpp
+++ b/src/ssl/tls_policy.cpp
@@ -115,12 +115,4 @@ DL_Group TLS_Policy::dh_group() const
return DL_Group("modp/ietf/1024");
}
-/*
-* Default certificate check
-*/
-bool TLS_Policy::check_cert(const std::vector<X509_Certificate>& certs) const
- {
- return true;
- }
-
}
diff --git a/src/ssl/tls_policy.h b/src/ssl/tls_policy.h
index c5944f0f7..461164d2f 100644
--- a/src/ssl/tls_policy.h
+++ b/src/ssl/tls_policy.h
@@ -39,10 +39,17 @@ class BOTAN_DLL TLS_Policy
virtual DL_Group dh_group() const;
virtual size_t rsa_export_keysize() const { return 512; }
+ /*
+ * @return the minimum version that we will negotiate
+ */
virtual Version_Code min_version() const { return SSL_V3; }
+
+ /*
+ * @return the version we would prefer to negotiate
+ */
virtual Version_Code pref_version() const { return TLS_V11; }
- virtual bool check_cert(const std::vector<X509_Certificate>& cert_chain) const;
+ virtual bool check_cert(const std::vector<X509_Certificate>& cert_chain) const = 0;
virtual ~TLS_Policy() {}
private: