diff options
author | lloyd <[email protected]> | 2012-07-10 21:13:06 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2012-07-10 21:13:06 +0000 |
commit | 3a33e128961e7ea4bd584639ba393d056bec3d23 (patch) | |
tree | a1ad9cb2ca67541a90a61b0723c7040191484356 /src/tls | |
parent | 0e718e402cb58c5ccfe538dfe36962c73a223d3a (diff) |
Add deleted copy constructors/assignment operators where appropriate.
Replace C++98 style private copy constructors/assignment ops with ones
annotated with delete.
Diffstat (limited to 'src/tls')
-rw-r--r-- | src/tls/tls_channel.h | 4 | ||||
-rw-r--r-- | src/tls/tls_handshake_state.h | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/tls/tls_channel.h b/src/tls/tls_channel.h index c2193b282..de232d042 100644 --- a/src/tls/tls_channel.h +++ b/src/tls/tls_channel.h @@ -89,6 +89,10 @@ class BOTAN_DLL Channel Session_Manager& session_manager, RandomNumberGenerator& rng); + Channel(const Channel&) = delete; + + Channel& operator=(const Channel&) = delete; + virtual ~Channel(); protected: diff --git a/src/tls/tls_handshake_state.h b/src/tls/tls_handshake_state.h index 3ac023b1d..521da0205 100644 --- a/src/tls/tls_handshake_state.h +++ b/src/tls/tls_handshake_state.h @@ -34,6 +34,9 @@ class Handshake_State Handshake_State(Handshake_Reader* reader); ~Handshake_State(); + Handshake_State(const Handshake_State&) = delete; + Handshake_State& operator=(const Handshake_State&) = delete; + bool received_handshake_msg(Handshake_Type handshake_msg) const; void confirm_transition_to(Handshake_Type handshake_msg); |