diff options
author | Brad King <brad.king@kitware.com> | 2013-01-24 19:12:10 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2013-01-30 15:05:07 (GMT) |
commit | ee2abfdc8913e4e9a5bc77c56a9d3dea83fde6f1 (patch) | |
tree | 4a0235d75ef035f1129888043fda79db892f8f75 /Modules | |
parent | aa8b2288d320335d28f3777e1bc86ed3df231a09 (diff) | |
download | CMake-ee2abfdc8913e4e9a5bc77c56a9d3dea83fde6f1.zip CMake-ee2abfdc8913e4e9a5bc77c56a9d3dea83fde6f1.tar.gz CMake-ee2abfdc8913e4e9a5bc77c56a9d3dea83fde6f1.tar.bz2 |
ExternalData: Add support for SHA 1 and 2 hash algorithms
Update the Module.ExternalData and RunCMake.ExternalData tests to cover
some of them.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/ExternalData.cmake | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Modules/ExternalData.cmake b/Modules/ExternalData.cmake index fef8367..26b0f99 100644 --- a/Modules/ExternalData.cmake +++ b/Modules/ExternalData.cmake @@ -49,6 +49,11 @@ # %(algo) <ext> Description # ------- ----- ----------- # MD5 .md5 Message-Digest Algorithm 5, RFC 1321 +# SHA1 .sha1 US Secure Hash Algorithm 1, RFC 3174 +# SHA224 .sha224 US Secure Hash Algorithms, RFC 4634 +# SHA256 .sha256 US Secure Hash Algorithms, RFC 4634 +# SHA384 .sha384 US Secure Hash Algorithms, RFC 4634 +# SHA512 .sha512 US Secure Hash Algorithms, RFC 4634 # Note that the hashes are used only for unique data identification and # download verification. This is not security software. # @@ -261,8 +266,8 @@ endfunction() #----------------------------------------------------------------------------- # Private helper interface -set(_ExternalData_REGEX_ALGO "MD5") -set(_ExternalData_REGEX_EXT "md5") +set(_ExternalData_REGEX_ALGO "MD5|SHA1|SHA224|SHA256|SHA384|SHA512") +set(_ExternalData_REGEX_EXT "md5|sha1|sha224|sha256|sha384|sha512") set(_ExternalData_SELF "${CMAKE_CURRENT_LIST_FILE}") get_filename_component(_ExternalData_SELF_DIR "${_ExternalData_SELF}" PATH) |