summaryrefslogtreecommitdiffstats
path: root/Source/cmStringCommand.h
diff options
context:
space:
mode:
authorDavid Cole <david.cole@kitware.com>2011-11-22 21:24:21 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2011-11-22 21:24:21 (GMT)
commitd9df0cca66543610472f5979cfce73765b7e281a (patch)
tree5317b424c9dcddc1be34ea9be0f9be41602f9953 /Source/cmStringCommand.h
parent7db42fc2559ec2692c36cf25f781f50dd48b7f44 (diff)
parent0599c5f546c8b3e04c0dd9fcdc19a6b3825849a7 (diff)
downloadCMake-d9df0cca66543610472f5979cfce73765b7e281a.zip
CMake-d9df0cca66543610472f5979cfce73765b7e281a.tar.gz
CMake-d9df0cca66543610472f5979cfce73765b7e281a.tar.bz2
Merge topic 'crypto-hash'
0599c5f sha2: Zero entire SHA_CTX structure during cleanup 0a6705c sha2: Suppress -Wcast-align warning from Clang 24b1feb sha2: Cast safe conversions to smaller integer types 1ec3fa0 Merge branch 'update-KWIML' into crypto-hash 6495b59 cmCryptoHash: Add virtual destructor 8302608 Fix CMake.File hash test for CRLF checkouts 9fb1a9c sha2: Wrap long lines in third-party declarations b0853b5 Disable file() and string() hash commands during bootstrap 9da8340 sha2: Suppress Borland warnings in third-party code 23b3df7 sha2: Use KWIML fixed-size integer constant macros 2e9c26c Add string(MD5) and string(SHA*) commands to compute hashes 293a7f4 cmCryptoHash: Provide factory "New" method 46ab056 sha2: Use "static const" instead of "const static" declarations 38771d3 Add file(SHA*) commands to compute cryptographic hashes 73efd4a sha2: Build as part of CMakeLib c1856a3 sha2: Use KWIML fixed-size integer types and endian-ness fcc3ce5 Merge branch 'import-sha2' into crypto-hash 042f796 Add file(MD5) command to compute cryptographic hash ed7cef5 Factor Compute(File|String)MD5 into cmCryptoHash helper 8251b20 Import sha2 implementation 1.1 from Aaron D. Gifford 9912c41 Import sha2 implementation 1.0 from Aaron D. Gifford
Diffstat (limited to 'Source/cmStringCommand.h')
-rw-r--r--Source/cmStringCommand.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmStringCommand.h b/Source/cmStringCommand.h
index 52b83d9..452f4a1 100644
--- a/Source/cmStringCommand.h
+++ b/Source/cmStringCommand.h
@@ -76,6 +76,8 @@ public:
" string(REPLACE <match_string>\n"
" <replace_string> <output variable>\n"
" <input> [<input>...])\n"
+ " string(<MD5|SHA1|SHA224|SHA256|SHA384|SHA512>\n"
+ " <output variable> <input>)\n"
" string(COMPARE EQUAL <string1> <string2> <output variable>)\n"
" string(COMPARE NOTEQUAL <string1> <string2> <output variable>)\n"
" string(COMPARE LESS <string1> <string2> <output variable>)\n"
@@ -103,6 +105,8 @@ public:
"backslash through argument parsing.\n"
"REPLACE will replace all occurrences of match_string in the input with "
"replace_string and store the result in the output.\n"
+ "MD5, SHA1, SHA224, SHA256, SHA384, and SHA512 "
+ "will compute a cryptographic hash of the input string.\n"
"COMPARE EQUAL/NOTEQUAL/LESS/GREATER will compare the strings and "
"store true or false in the output variable.\n"
"ASCII will convert all numbers into corresponding ASCII characters.\n"
@@ -150,6 +154,7 @@ protected:
bool RegexMatch(std::vector<std::string> const& args);
bool RegexMatchAll(std::vector<std::string> const& args);
bool RegexReplace(std::vector<std::string> const& args);
+ bool HandleHashCommand(std::vector<std::string> const& args);
bool HandleToUpperLowerCommand(std::vector<std::string> const& args,
bool toUpper);
bool HandleCompareCommand(std::vector<std::string> const& args);