aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/tls/tls_version.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/tls/tls_version.h')
-rw-r--r--src/lib/tls/tls_version.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/tls/tls_version.h b/src/lib/tls/tls_version.h
index 569030085..13be64316 100644
--- a/src/lib/tls/tls_version.h
+++ b/src/lib/tls/tls_version.h
@@ -82,6 +82,11 @@ class BOTAN_PUBLIC_API(2,0) Protocol_Version final
uint8_t minor_version() const { return get_byte(1, m_version); }
/**
+ * @return the version code
+ */
+ uint16_t version_code() const { return m_version; }
+
+ /**
* @return human-readable description of this version
*/
std::string to_string() const;