aboutsummaryrefslogtreecommitdiffstats
path: root/src/tls
diff options
context:
space:
mode:
Diffstat (limited to 'src/tls')
-rw-r--r--src/tls/tls_channel.h4
-rw-r--r--src/tls/tls_handshake_state.h3
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);