diff options
author | lloyd <[email protected]> | 2012-01-23 17:41:12 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2012-01-23 17:41:12 +0000 |
commit | a12a50cc0eaf5113d2f0687f4c1d4be5ff820838 (patch) | |
tree | c800f3271e84e28e751c6ab30abdee21fc1b1acb /src/tls/cert_ver.cpp | |
parent | a445f7f4a1089fc034c35c500e1572eb9518f44f (diff) |
Make the version number a proper class, makes many things much easier
for such a minor change.
Diffstat (limited to 'src/tls/cert_ver.cpp')
-rw-r--r-- | src/tls/cert_ver.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tls/cert_ver.cpp b/src/tls/cert_ver.cpp index 923cdbb42..791635b17 100644 --- a/src/tls/cert_ver.cpp +++ b/src/tls/cert_ver.cpp @@ -30,7 +30,7 @@ Certificate_Verify::Certificate_Verify(Record_Writer& writer, PK_Signer signer(*priv_key, format.first, format.second); - if(state->version == SSL_V3) + if(state->version == Protocol_Version::SSL_V3) { SecureVector<byte> md5_sha = state->hash.final_ssl3( state->keys.master_secret()); @@ -52,11 +52,11 @@ Certificate_Verify::Certificate_Verify(Record_Writer& writer, * Deserialize a Certificate Verify message */ Certificate_Verify::Certificate_Verify(const MemoryRegion<byte>& buf, - Version_Code version) + Protocol_Version version) { TLS_Data_Reader reader(buf); - if(version >= TLS_V12) + if(version >= Protocol_Version::TLS_V12) { hash_algo = Signature_Algorithms::hash_algo_name(reader.get_byte()); sig_algo = Signature_Algorithms::sig_algo_name(reader.get_byte()); @@ -99,7 +99,7 @@ bool Certificate_Verify::verify(const X509_Certificate& cert, PK_Verifier verifier(*key, format.first, format.second); - if(state->version == SSL_V3) + if(state->version == Protocol_Version::SSL_V3) { SecureVector<byte> md5_sha = state->hash.final_ssl3( state->keys.master_secret()); |