diff options
author | lloyd <[email protected]> | 2008-10-26 21:02:10 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-10-26 21:02:10 +0000 |
commit | 9b7cd20217d1134754daf2b2046249607ab7a3a7 (patch) | |
tree | 46b38d789a4edf89c8d8ede72418108dca76c6b0 /src/s2k | |
parent | ac4bab4e40a45a7d1b6061142ab831813bf0d6ca (diff) |
Make S2K base class non-copyable and non-assignable by default (use clone instead)
Diffstat (limited to 'src/s2k')
-rw-r--r-- | src/s2k/s2k.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/s2k/s2k.h b/src/s2k/s2k.h index 3efcff638..d345d77de 100644 --- a/src/s2k/s2k.h +++ b/src/s2k/s2k.h @@ -86,6 +86,9 @@ class BOTAN_DLL S2K S2K() { iter = 0; } virtual ~S2K() {} private: + S2K(const S2K&) {} + S2K& operator=(const S2K&) { return (*this); } + virtual OctetString derive(u32bit, const std::string&, const byte[], u32bit, u32bit) const = 0; SecureVector<byte> salt; |