diff options
author | Brad King <brad.king@kitware.com> | 2017-02-24 07:26:35 -0500 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-02-24 07:33:32 -0500 |
commit | bb29029333651b788131bcc34178c13dbf136ec4 (patch) | |
tree | 522ca4a089aff0d746b6958cc9225e048985328c /libarchive/archive_hmac.c | |
parent | cdd5f101880adf5c78b5e126164d3af04f6a9263 (diff) | |
download | libarchive-bb29029333651b788131bcc34178c13dbf136ec4.tar.gz |
Define bcrypt macro not available in Win 7 SDK
VS 2010 comes with the Win 7 SDK and its bcrypt.h does not define the
`BCRYPT_HASH_REUSABLE_FLAG` macro. Provide the definition locally if
it is not available.
Diffstat (limited to 'libarchive/archive_hmac.c')
-rw-r--r-- | libarchive/archive_hmac.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libarchive/archive_hmac.c b/libarchive/archive_hmac.c index 1e0ae283..f2996557 100644 --- a/libarchive/archive_hmac.c +++ b/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) { |