summaryrefslogtreecommitdiff
path: root/MPQCryptography.h
diff options
context:
space:
mode:
authoryazoo <yazoo>2008-01-29 07:43:06 +0000
committeryazoo <yazoo>2008-01-29 07:43:06 +0000
commit8522e44467ebcac54201def2c6583639e74e9e24 (patch)
tree9d475da6b178bf96359f06d39773441b76b8d567 /MPQCryptography.h
parent7ecf94d4b339bc2197f449f0f1538f2915313087 (diff)
Portage win32
Diffstat (limited to 'MPQCryptography.h')
-rw-r--r--MPQCryptography.h8
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)
}