aboutsummaryrefslogtreecommitdiffstats
path: root/src/tls/tls_session.h
diff options
context:
space:
mode:
authorlloyd <[email protected]>2012-01-23 15:30:29 +0000
committerlloyd <[email protected]>2012-01-23 15:30:29 +0000
commita445f7f4a1089fc034c35c500e1572eb9518f44f (patch)
tree3231b324a290cb9c67e9a0512a40acad8fa024a1 /src/tls/tls_session.h
parent8bba8bab6077ee184c102d6634b288e7dd32b1dc (diff)
Since this branch is hugely API breaking already, go ahead and put
everything into a new namespace (Botan::TLS), removing the TLS_ prefixes on everything.
Diffstat (limited to 'src/tls/tls_session.h')
-rw-r--r--src/tls/tls_session.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/tls/tls_session.h b/src/tls/tls_session.h
index 12b76bcab..9b3f5b194 100644
--- a/src/tls/tls_session.h
+++ b/src/tls/tls_session.h
@@ -14,17 +14,19 @@
namespace Botan {
+namespace TLS {
+
/**
* Class representing a TLS session state
*/
-class BOTAN_DLL TLS_Session
+class BOTAN_DLL Session
{
public:
/**
* Uninitialized session
*/
- TLS_Session() :
+ Session() :
m_start_time(0),
m_version(0),
m_ciphersuite(0),
@@ -37,7 +39,7 @@ class BOTAN_DLL TLS_Session
/**
* New session (sets session start time)
*/
- TLS_Session(const MemoryRegion<byte>& session_id,
+ Session(const MemoryRegion<byte>& session_id,
const MemoryRegion<byte>& master_secret,
Version_Code version,
u16bit ciphersuite,
@@ -52,7 +54,7 @@ class BOTAN_DLL TLS_Session
/**
* Load a session from BER (created by BER_encode)
*/
- TLS_Session(const byte ber[], size_t ber_len);
+ Session(const byte ber[], size_t ber_len);
/**
* Encode this session data for storage
@@ -154,4 +156,6 @@ class BOTAN_DLL TLS_Session
}
+}
+
#endif