From 293a7f4e2ae9b458d3efefcfe133d0ad5320a1b2 Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 16 Nov 2011 10:04:41 -0500 Subject: cmCryptoHash: Provide factory "New" method Construct a cmCryptoHash subclass instance based on the name of the desired hash algorithm. --- Source/cmCryptoHash.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Source/cmCryptoHash.h') diff --git a/Source/cmCryptoHash.h b/Source/cmCryptoHash.h index c17104b365..0a33365511 100644 --- a/Source/cmCryptoHash.h +++ b/Source/cmCryptoHash.h @@ -14,9 +14,12 @@ #include "cmStandardIncludes.h" +#include + class cmCryptoHash { public: + static cmsys::auto_ptr New(const char* algo); std::string HashString(const char* input); std::string HashFile(const char* file); protected: -- cgit v1.2.1