diff options
Diffstat (limited to 'MPQCryptography.h')
-rw-r--r-- | MPQCryptography.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/MPQCryptography.h b/MPQCryptography.h index b1d621e..01aa418 100644 --- a/MPQCryptography.h +++ b/MPQCryptography.h @@ -7,9 +7,15 @@ * */ +#ifdef WIN32 +#include "stdint.h" +#include <stdlib.h> +#define bool char +#else #include <stdbool.h> #include <stdint.h> #include <openssl/rsa.h> +#endif #if defined(__cplusplus) extern "C" { @@ -40,8 +46,10 @@ extern "C" { #define __MPQLIB_CRC_FINALIZE 0x4 void __mpqlib_crc32(const unsigned char *buffer, uint32_t length, uint32_t * crc, uint32_t flags); +#ifdef USE_SSL int __mpqlib_verify_weak_signature(RSA * public_key, const unsigned char *signature, const unsigned char *digest); int __mpqlib_verify_strong_signature(RSA * public_key, const unsigned char *signature, const unsigned char *digest); +#endif #if defined(__cplusplus) } |