summaryrefslogtreecommitdiffstats
path: root/Source/cmCryptoHash.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2011-11-16 15:04:41 (GMT)
committerBrad King <brad.king@kitware.com>2011-11-16 15:15:44 (GMT)
commit293a7f4e2ae9b458d3efefcfe133d0ad5320a1b2 (patch)
treee3ff0fa7f5d7ba3d6722b0cc1eef4f917a95e7ea /Source/cmCryptoHash.h
parent46ab0561fc29446a736985816b005200aad9489c (diff)
downloadCMake-293a7f4e2ae9b458d3efefcfe133d0ad5320a1b2.zip
CMake-293a7f4e2ae9b458d3efefcfe133d0ad5320a1b2.tar.gz
CMake-293a7f4e2ae9b458d3efefcfe133d0ad5320a1b2.tar.bz2
cmCryptoHash: Provide factory "New" method
Construct a cmCryptoHash subclass instance based on the name of the desired hash algorithm.
Diffstat (limited to 'Source/cmCryptoHash.h')
-rw-r--r--Source/cmCryptoHash.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmCryptoHash.h b/Source/cmCryptoHash.h
index c17104b..0a33365 100644
--- a/Source/cmCryptoHash.h
+++ b/Source/cmCryptoHash.h
@@ -14,9 +14,12 @@
#include "cmStandardIncludes.h"
+#include <cmsys/auto_ptr.hxx>
+
class cmCryptoHash
{
public:
+ static cmsys::auto_ptr<cmCryptoHash> New(const char* algo);
std::string HashString(const char* input);
std::string HashFile(const char* file);
protected: