From a12a50cc0eaf5113d2f0687f4c1d4be5ff820838 Mon Sep 17 00:00:00 2001 From: lloyd Date: Mon, 23 Jan 2012 17:41:12 +0000 Subject: Make the version number a proper class, makes many things much easier for such a minor change. --- src/tls/tls_handshake_hash.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/tls/tls_handshake_hash.cpp') diff --git a/src/tls/tls_handshake_hash.cpp b/src/tls/tls_handshake_hash.cpp index e521ea342..491b4f6c0 100644 --- a/src/tls/tls_handshake_hash.cpp +++ b/src/tls/tls_handshake_hash.cpp @@ -31,11 +31,11 @@ void Handshake_Hash::update(Handshake_Type handshake_type, /** * Return a TLS Handshake Hash */ -SecureVector Handshake_Hash::final(Version_Code version) +SecureVector Handshake_Hash::final(Protocol_Version version) { SecureVector output; - if(version == TLS_V10 || version == TLS_V11) + if(version == Protocol_Version::TLS_V10 || version == Protocol_Version::TLS_V11) { MD5 md5; SHA_160 sha1; @@ -46,7 +46,7 @@ SecureVector Handshake_Hash::final(Version_Code version) output += md5.final(); output += sha1.final(); } - else if(version == TLS_V12) + else if(version == Protocol_Version::TLS_V12) { // This might depend on the ciphersuite SHA_256 sha256; -- cgit v1.2.3