aboutsummaryrefslogtreecommitdiffstats
path: root/src/tls/tls_session.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/tls/tls_session.h')
-rw-r--r--src/tls/tls_session.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/tls/tls_session.h b/src/tls/tls_session.h
index b4b3861ed..f1352a0e0 100644
--- a/src/tls/tls_session.h
+++ b/src/tls/tls_session.h
@@ -68,6 +68,16 @@ class BOTAN_DLL TLS_Session
{ return static_cast<Version_Code>(m_version); }
/**
+ * Get the major version of the saved session
+ */
+ byte major_version() const { return get_byte(0, m_version); }
+
+ /**
+ * Get the minor version of the saved session
+ */
+ byte minor_version() const { return get_byte(0, m_version); }
+
+ /**
* Get the ciphersuite of the saved session
*/
u16bit ciphersuite() const { return m_ciphersuite; }