diff options
author | lloyd <[email protected]> | 2012-11-01 21:41:52 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2012-11-01 21:41:52 +0000 |
commit | a3001b7fb821bc75523436912385278d7ed31b31 (patch) | |
tree | e300a68c28d405f439734718aa3fee7e135f2797 | |
parent | ae4685b6d65870530148dcb0d50d8bcc89692230 (diff) |
Move Channel::is_{active,closed} to source file
-rw-r--r-- | src/tls/tls_channel.cpp | 10 | ||||
-rw-r--r-- | src/tls/tls_channel.h | 4 |
2 files changed, 12 insertions, 2 deletions
diff --git a/src/tls/tls_channel.cpp b/src/tls/tls_channel.cpp index e35226205..be3f1c784 100644 --- a/src/tls/tls_channel.cpp +++ b/src/tls/tls_channel.cpp @@ -146,6 +146,16 @@ void Channel::change_cipher_spec_writer(Connection_Side side) m_pending_state->new_write_cipher_state(side); } +bool Channel::is_active() const + { + return m_active_state.get(); + } + +bool Channel::is_closed() const + { + return m_connection_closed; + } + void Channel::activate_session() { std::swap(m_active_state, m_pending_state); diff --git a/src/tls/tls_channel.h b/src/tls/tls_channel.h index 71ef56069..1a30c5604 100644 --- a/src/tls/tls_channel.h +++ b/src/tls/tls_channel.h @@ -56,12 +56,12 @@ class BOTAN_DLL Channel /** * @return true iff the connection is active for sending application data */ - bool is_active() const { return m_active_state.get(); } + bool is_active() const; /** * @return true iff the connection has been definitely closed */ - bool is_closed() const { return m_connection_closed; } + bool is_closed() const; /** * Attempt to renegotiate the session |