diff options
author | lloyd <[email protected]> | 2010-11-04 01:57:10 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2010-11-04 01:57:10 +0000 |
commit | 51e9d52e4fcfcf486ee53af1a42c98e841bcfde0 (patch) | |
tree | 1fddcd1460aee741ffa19ec4298c265cee3200e4 /src | |
parent | 860c43c55492b82bf80611d12d9bafce73ad480b (diff) |
Mass disable copy constructors and assignment on all algos until proven safe/useful
Diffstat (limited to 'src')
-rw-r--r-- | src/algo_base/algo_base.h | 4 | ||||
-rw-r--r-- | src/hash/hash.h | 3 | ||||
-rw-r--r-- | src/pbkdf/pbkdf.h | 6 |
3 files changed, 4 insertions, 9 deletions
diff --git a/src/algo_base/algo_base.h b/src/algo_base/algo_base.h index 9b41caf8b..c27ea1809 100644 --- a/src/algo_base/algo_base.h +++ b/src/algo_base/algo_base.h @@ -35,7 +35,11 @@ class BOTAN_DLL Algorithm */ virtual std::string name() const = 0; + Algorithm() {} virtual ~Algorithm() {} + private: + Algorithm(const Algorithm&) {} + Algorithm& operator=(const Algorithm&) { return (*this); } }; } diff --git a/src/hash/hash.h b/src/hash/hash.h index 366c929b5..8143e8e90 100644 --- a/src/hash/hash.h +++ b/src/hash/hash.h @@ -30,9 +30,6 @@ class BOTAN_DLL HashFunction : public Buffered_Computation, * The hash block size as defined for this algorithm */ virtual size_t hash_block_size() const { return 0; } - - private: - HashFunction& operator=(const HashFunction&); }; } diff --git a/src/pbkdf/pbkdf.h b/src/pbkdf/pbkdf.h index e8e841562..e951b5673 100644 --- a/src/pbkdf/pbkdf.h +++ b/src/pbkdf/pbkdf.h @@ -41,12 +41,6 @@ class BOTAN_DLL PBKDF : public Algorithm const std::string& passphrase, const byte salt[], size_t salt_len, size_t iterations) const = 0; - - PBKDF() {} - virtual ~PBKDF() {} - private: - PBKDF(const PBKDF&) {} - PBKDF& operator=(const PBKDF&) { return (*this); } }; /** |