aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-11-05 16:04:54 +0000
committerlloyd <[email protected]>2010-11-05 16:04:54 +0000
commitb533365f46f008dad1d43c89b86ac817423f969a (patch)
tree5e754075a1abb871adcaece61fa4052a5b041eae
parent3651781ef826282b875a3b408f76b3701cf00a2b (diff)
Unfortunately it looks like VC 2008 has major issues with how
Algorithm::clone is redefinied with covariant return types in the subclasses. Curiously, it only had problems with hash functions and MACs, not ciphers. So remove Algorithm::clone(), leaving the subclass implementations.
-rw-r--r--src/algo_base/algo_base.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/algo_base/algo_base.h b/src/algo_base/algo_base.h
index c27ea1809..813216a36 100644
--- a/src/algo_base/algo_base.h
+++ b/src/algo_base/algo_base.h
@@ -1,6 +1,6 @@
/*
-* Symmetric Algorithm Base Class
-* (C) 1999-2007 Jack Lloyd
+* Algorithm Base Class
+* (C) 2010 Jack Lloyd
*
* Distributed under the terms of the Botan license
*/
@@ -14,18 +14,13 @@
namespace Botan {
/**
-* This class represents a symmetric algorithm object.
+* This class represents an algorithm of some kind
*/
class BOTAN_DLL Algorithm
{
public:
/**
- * Make a new object representing the same algorithm as *this
- */
- virtual Algorithm* clone() const = 0;
-
- /**
* Zeroize internal state
*/
virtual void clear() = 0;