diff options
author | Tim Kientzle <kientzle@acm.org> | 2015-06-15 11:16:16 -0700 |
---|---|---|
committer | Tim Kientzle <kientzle@acm.org> | 2015-06-15 11:16:16 -0700 |
commit | 112c7d7c279a30da6e07452991343b88c8c25e28 (patch) | |
tree | 17ef82ae13122dbd993383cfe76617952a179c98 /libarchive/archive_cryptor_private.h | |
parent | 90714b37e6a0632d24dbabe6822f9d374d641616 (diff) | |
download | libarchive-112c7d7c279a30da6e07452991343b88c8c25e28.tar.gz |
Issue #520: Define BCRYPT_SUCCESS for VS2008
Diffstat (limited to 'libarchive/archive_cryptor_private.h')
-rw-r--r-- | libarchive/archive_cryptor_private.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libarchive/archive_cryptor_private.h b/libarchive/archive_cryptor_private.h index e1118ff8..b62ec0c6 100644 --- a/libarchive/archive_cryptor_private.h +++ b/libarchive/archive_cryptor_private.h @@ -48,6 +48,11 @@ typedef struct { #elif defined(_WIN32) && !defined(__CYGWIN__) && defined(HAVE_BCRYPT_H) #include <Bcrypt.h> +/* Common in other bcrypt implementations, but missing from VS2008. */ +#ifndef BCRYPT_SUCCESS +#define BCRYPT_SUCCESS(r) ((NTSTATUS)(r) == STATUS_SUCCESS) +#endif + #define AES_MAX_KEY_SIZE 32 #define AES_BLOCK_SIZE 16 typedef struct { |