summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2007-06-01 17:29:27 +0000
committerweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2007-06-01 17:29:27 +0000
commitb6b19a9a38dcacf82416c4593eec94c86970644a (patch)
tree9ce89d883a6c3783bd8feca38f10700f486c36ec
parenta689a92a5664487e607701539745d3e91ca5f846 (diff)
downloadcryptopp-b6b19a9a38dcacf82416c4593eec94c86970644a.tar.gz
add missing virtual destructors
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@377 57ff6487-cd31-0410-9ec3-f628ee90f5f0
-rw-r--r--cryptlib.h4
-rw-r--r--strciphr.h2
2 files changed, 6 insertions, 0 deletions
diff --git a/cryptlib.h b/cryptlib.h
index 7b104d6..993936e 100644
--- a/cryptlib.h
+++ b/cryptlib.h
@@ -353,6 +353,8 @@ public:
class CRYPTOPP_DLL CRYPTOPP_NO_VTABLE SimpleKeyingInterface
{
public:
+ virtual ~SimpleKeyingInterface() {}
+
//! returns smallest valid key length in bytes */
virtual size_t MinKeyLength() const =0;
//! returns largest valid key length in bytes */
@@ -678,6 +680,8 @@ class CallStack;
class CRYPTOPP_NO_VTABLE Waitable
{
public:
+ virtual ~Waitable() {}
+
//! maximum number of wait objects that this object can return
virtual unsigned int GetMaxWaitObjectCount() const =0;
//! put wait objects into container
diff --git a/strciphr.h b/strciphr.h
index e3216a8..6a5cc97 100644
--- a/strciphr.h
+++ b/strciphr.h
@@ -64,6 +64,7 @@ enum KeystreamOperation {
struct CRYPTOPP_DLL CRYPTOPP_NO_VTABLE AdditiveCipherAbstractPolicy
{
+ virtual ~AdditiveCipherAbstractPolicy() {}
virtual unsigned int GetAlignment() const {return 1;}
virtual unsigned int GetBytesPerIteration() const =0;
virtual unsigned int GetOptimalBlockSize() const {return GetBytesPerIteration();}
@@ -160,6 +161,7 @@ protected:
class CRYPTOPP_DLL CRYPTOPP_NO_VTABLE CFB_CipherAbstractPolicy
{
public:
+ virtual ~CFB_CipherAbstractPolicy() {}
virtual unsigned int GetAlignment() const =0;
virtual unsigned int GetBytesPerIteration() const =0;
virtual byte * GetRegisterBegin() =0;