summaryrefslogtreecommitdiffstats
path: root/Source/cmCryptoHash.h
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2014-02-07 20:06:13 (GMT)
committerBrad King <brad.king@kitware.com>2014-03-08 18:05:32 (GMT)
commit77f60392d93f41a8828d3db1d7b76d45f1535d07 (patch)
treef9269d9beaa720270a4d2eed879d79b9d22aef54 /Source/cmCryptoHash.h
parent473ca1ac4a5df336ff09ee2c666e437eabf43bc9 (diff)
downloadCMake-77f60392d93f41a8828d3db1d7b76d45f1535d07.zip
CMake-77f60392d93f41a8828d3db1d7b76d45f1535d07.tar.gz
CMake-77f60392d93f41a8828d3db1d7b76d45f1535d07.tar.bz2
stringapi: Accept strings when MD5 hashing data
Diffstat (limited to 'Source/cmCryptoHash.h')
-rw-r--r--Source/cmCryptoHash.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmCryptoHash.h b/Source/cmCryptoHash.h
index 1bea9ab..88cd240 100644
--- a/Source/cmCryptoHash.h
+++ b/Source/cmCryptoHash.h
@@ -21,8 +21,8 @@ class cmCryptoHash
public:
virtual ~cmCryptoHash() {}
static cmsys::auto_ptr<cmCryptoHash> New(const char* algo);
- std::string HashString(const char* input);
- std::string HashFile(const char* file);
+ std::string HashString(const std::string& input);
+ std::string HashFile(const std::string& file);
protected:
virtual void Initialize()=0;
virtual void Append(unsigned char const*, int)=0;