summaryrefslogtreecommitdiffstats
path: root/Utilities/cmlibarchive/libarchive/archive_hmac.c
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-02-27 13:51:36 (GMT)
committerBrad King <brad.king@kitware.com>2017-02-27 13:51:36 (GMT)
commit62d0e22325d36e5f9d61ccfbef0d68cfe1935f1b (patch)
tree285c9c8373b01bee64e3af6da8a43a5232a57c63 /Utilities/cmlibarchive/libarchive/archive_hmac.c
parent5fee76606b7a1f252e75e95c3d8303777459938d (diff)
parent059aa805c9c0cb34c92eb69abf66febc40ab62db (diff)
downloadCMake-62d0e22325d36e5f9d61ccfbef0d68cfe1935f1b.zip
CMake-62d0e22325d36e5f9d61ccfbef0d68cfe1935f1b.tar.gz
CMake-62d0e22325d36e5f9d61ccfbef0d68cfe1935f1b.tar.bz2
Merge branch 'upstream-LibArchive' into update-libarchive
* upstream-LibArchive: LibArchive 2017-02-25 (d6b1bb9f)
Diffstat (limited to 'Utilities/cmlibarchive/libarchive/archive_hmac.c')
-rw-r--r--Utilities/cmlibarchive/libarchive/archive_hmac.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Utilities/cmlibarchive/libarchive/archive_hmac.c b/Utilities/cmlibarchive/libarchive/archive_hmac.c
index 1e0ae28..f299655 100644
--- a/Utilities/cmlibarchive/libarchive/archive_hmac.c
+++ b/Utilities/cmlibarchive/libarchive/archive_hmac.c
@@ -76,6 +76,10 @@ __hmac_sha1_cleanup(archive_hmac_sha1_ctx *ctx)
#elif defined(_WIN32) && !defined(__CYGWIN__) && defined(HAVE_BCRYPT_H)
+#ifndef BCRYPT_HASH_REUSABLE_FLAG
+# define BCRYPT_HASH_REUSABLE_FLAG 0x00000020
+#endif
+
static int
__hmac_sha1_init(archive_hmac_sha1_ctx *ctx, const uint8_t *key, size_t key_len)
{