From ed689a532a5938051dddebbda22d34b04f208164 Mon Sep 17 00:00:00 2001 From: lloyd Date: Sat, 13 Oct 2012 19:38:15 +0000 Subject: Remove TLS::Policy::pref_version. Instead pass the version to offer to the Client constructor. Defaults to the most recent version of TLS. Allows TLS or DTLS, and means that it's possible to back down on the offered version, without requiring a Policy implementation with mutable state. --- src/tls/tls_policy.h | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src/tls/tls_policy.h') diff --git a/src/tls/tls_policy.h b/src/tls/tls_policy.h index 8b73fea9d..4379d9b0c 100644 --- a/src/tls/tls_policy.h +++ b/src/tls/tls_policy.h @@ -119,11 +119,6 @@ class BOTAN_DLL Policy */ virtual bool acceptable_protocol_version(Protocol_Version version) const; - /** - * @return the version we would prefer to negotiate - */ - virtual Protocol_Version pref_version() const; - virtual ~Policy() {} }; -- cgit v1.2.3