aboutsummaryrefslogtreecommitdiffstats
path: root/src/tls/tls_record.h
diff options
context:
space:
mode:
authorlloyd <[email protected]>2012-01-23 17:41:12 +0000
committerlloyd <[email protected]>2012-01-23 17:41:12 +0000
commita12a50cc0eaf5113d2f0687f4c1d4be5ff820838 (patch)
treec800f3271e84e28e751c6ab30abdee21fc1b1acb /src/tls/tls_record.h
parenta445f7f4a1089fc034c35c500e1572eb9518f44f (diff)
Make the version number a proper class, makes many things much easier
for such a minor change.
Diffstat (limited to 'src/tls/tls_record.h')
-rw-r--r--src/tls/tls_record.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/tls/tls_record.h b/src/tls/tls_record.h
index 979154001..991243af5 100644
--- a/src/tls/tls_record.h
+++ b/src/tls/tls_record.h
@@ -9,6 +9,7 @@
#define BOTAN_TLS_RECORDS_H__
#include <botan/tls_suites.h>
+#include <botan/tls_version.h>
#include <botan/pipe.h>
#include <botan/mac.h>
#include <botan/secqueue.h>
@@ -49,7 +50,7 @@ class BOTAN_DLL Record_Writer
const Session_Keys& keys,
Connection_Side side);
- void set_version(Version_Code version);
+ void set_version(Protocol_Version version);
void reset();
@@ -74,7 +75,7 @@ class BOTAN_DLL Record_Writer
size_t m_block_size, m_mac_size, m_iv_size, m_max_fragment;
u64bit m_seq_no;
- byte m_major, m_minor;
+ Protocol_Version m_version;
};
/**
@@ -103,7 +104,7 @@ class BOTAN_DLL Record_Reader
const Session_Keys& keys,
Connection_Side side);
- void set_version(Version_Code version);
+ void set_version(Protocol_Version version);
void reset();
@@ -129,7 +130,7 @@ class BOTAN_DLL Record_Reader
MessageAuthenticationCode* m_mac;
size_t m_block_size, m_iv_size, m_max_fragment;
u64bit m_seq_no;
- byte m_major, m_minor;
+ Protocol_Version m_version;
};
}