aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/tls/tls_extensions.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/tls/tls_extensions.h')
-rw-r--r--src/lib/tls/tls_extensions.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/lib/tls/tls_extensions.h b/src/lib/tls/tls_extensions.h
index 38d810c76..9f5d81214 100644
--- a/src/lib/tls/tls_extensions.h
+++ b/src/lib/tls/tls_extensions.h
@@ -65,7 +65,7 @@ class Extension
*/
virtual bool empty() const = 0;
- virtual ~Extension() {}
+ virtual ~Extension() = default;
};
/**
@@ -133,7 +133,7 @@ class Renegotiation_Extension final : public Extension
Handshake_Extension_Type type() const override { return static_type(); }
- Renegotiation_Extension() {}
+ Renegotiation_Extension() = default;
explicit Renegotiation_Extension(const std::vector<uint8_t>& bits) :
m_reneg_data(bits) {}
@@ -206,7 +206,7 @@ class Session_Ticket final : public Extension
/**
* Create empty extension, used by both client and server
*/
- Session_Ticket() {}
+ Session_Ticket() = default;
/**
* Extension with ticket, used by client
@@ -369,7 +369,7 @@ class Extended_Master_Secret final : public Extension
bool empty() const override { return false; }
- Extended_Master_Secret() {}
+ Extended_Master_Secret() = default;
Extended_Master_Secret(TLS_Data_Reader& reader, uint16_t extension_size);
};
@@ -389,7 +389,7 @@ class Encrypt_then_MAC final : public Extension
bool empty() const override { return false; }
- Encrypt_then_MAC() {}
+ Encrypt_then_MAC() = default;
Encrypt_then_MAC(TLS_Data_Reader& reader, uint16_t extension_size);
};
@@ -459,13 +459,13 @@ class BOTAN_DLL Extensions
void deserialize(TLS_Data_Reader& reader);
- Extensions() {}
+ Extensions() = default;
explicit Extensions(TLS_Data_Reader& reader) { deserialize(reader); }
private:
- Extensions(const Extensions&) {}
- Extensions& operator=(const Extensions&) { return (*this); }
+ Extensions(const Extensions&) = delete;
+ Extensions& operator=(const Extensions&) = delete;
std::map<Handshake_Extension_Type, std::unique_ptr<Extension>> m_extensions;
};