aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/pubkey/pk_keys.h
diff options
context:
space:
mode:
authorTomasz Frydrych <[email protected]>2017-04-02 22:24:31 +0200
committerTomasz Frydrych <[email protected]>2017-04-03 23:42:29 +0200
commitfbef72e11c483fae16c32480cf84253a56d0ee25 (patch)
tree200b0fe290e9809ef6c8883e886b7c9a48c902a1 /src/lib/pubkey/pk_keys.h
parent753b4c2d5301574d3c9390b79aa275a49809e6c8 (diff)
Content:
* fixes for deprecated constructions in c++11 and later (explicit rule of 3/5 or implicit rule of 0 and other violations) * `default` specifier instead of `{}` in some places(probably all) * removal of unreachable code (for example `return` after `throw`) * removal of compilation unit only visible, but not used functions * fix for `throw()` specifier - used instead `BOTAN_NOEXCEPT` * removed not needed semicolons
Diffstat (limited to 'src/lib/pubkey/pk_keys.h')
-rw-r--r--src/lib/pubkey/pk_keys.h15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/lib/pubkey/pk_keys.h b/src/lib/pubkey/pk_keys.h
index 833dda69e..13e0dc768 100644
--- a/src/lib/pubkey/pk_keys.h
+++ b/src/lib/pubkey/pk_keys.h
@@ -24,10 +24,11 @@ class RandomNumberGenerator;
class BOTAN_DLL Public_Key
{
public:
+ Public_Key() =default;
+ Public_Key(const Public_Key& other) = default;
+ Public_Key& operator=(const Public_Key& other) = default;
virtual ~Public_Key() = default;
- virtual Public_Key& operator=(const Public_Key& other) = default;
-
/**
* Get the name of the underlying public key scheme.
* @return name of the public key scheme
@@ -165,10 +166,11 @@ class BOTAN_DLL Public_Key
class BOTAN_DLL Private_Key : public virtual Public_Key
{
public:
+ Private_Key() = default;
+ Private_Key(const Private_Key& other) = default;
+ Private_Key& operator=(const Private_Key& other) = default;
virtual ~Private_Key() = default;
- virtual Private_Key& operator=(const Private_Key& other) = default;
-
/**
* @return BER encoded private key bits
*/
@@ -274,7 +276,10 @@ class BOTAN_DLL PK_Key_Agreement_Key : public virtual Private_Key
*/
virtual std::vector<uint8_t> public_value() const = 0;
- virtual ~PK_Key_Agreement_Key() {}
+ PK_Key_Agreement_Key() = default;
+ PK_Key_Agreement_Key(const PK_Key_Agreement_Key&) = default;
+ PK_Key_Agreement_Key& operator=(const PK_Key_Agreement_Key&) = default;
+ virtual ~PK_Key_Agreement_Key() = default;
};
/*