aboutsummaryrefslogtreecommitdiffstats
path: root/src/tls/tls_version.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/tls/tls_version.h')
-rw-r--r--src/tls/tls_version.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/tls/tls_version.h b/src/tls/tls_version.h
index 651eebafc..39712db27 100644
--- a/src/tls/tls_version.h
+++ b/src/tls/tls_version.h
@@ -31,6 +31,16 @@ class BOTAN_DLL Protocol_Version
DTLS_V12 = 0xFEFD
};
+ static Protocol_Version latest_tls_version()
+ {
+ return Protocol_Version(TLS_V12);
+ }
+
+ static Protocol_Version latest_dtls_version()
+ {
+ return Protocol_Version(DTLS_V12);
+ }
+
Protocol_Version() : m_version(0) {}
/**