diff options
author | Luca Deri <deri@ntop.org> | 2022-02-23 21:00:53 +0100 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2022-02-23 21:00:53 +0100 |
commit | 34e020ac35a40b9b9440d0064dcd9dcf64fe0cbe (patch) | |
tree | 53967769a96615b9a0ebcf7003fa0bc49322eb94 | |
parent | 16ed0fd3f80141e1081ac315822abf34cfd61158 (diff) |
Win fixes
-rw-r--r-- | src/lib/third_party/src/gcrypt/gcm.c | 4 | ||||
-rw-r--r-- | src/lib/third_party/src/gcrypt_light.c | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/third_party/src/gcrypt/gcm.c b/src/lib/third_party/src/gcrypt/gcm.c index 824c92bc9..6a24524e0 100644 --- a/src/lib/third_party/src/gcrypt/gcm.c +++ b/src/lib/third_party/src/gcrypt/gcm.c @@ -34,7 +34,11 @@ #define GCM_VALIDATE( cond ) \ MBEDTLS_INTERNAL_VALIDATE( cond ) +#ifdef _WIN32 +#define LBLOCKSIZE 4 +#else #define LBLOCKSIZE __SIZEOF_LONG__ +#endif static void xorbytes( unsigned char *dst, const unsigned char *src, int n) { while(n > LBLOCKSIZE) { diff --git a/src/lib/third_party/src/gcrypt_light.c b/src/lib/third_party/src/gcrypt_light.c index 9c8a9e3f3..ecd4b6fc4 100644 --- a/src/lib/third_party/src/gcrypt_light.c +++ b/src/lib/third_party/src/gcrypt_light.c @@ -1,6 +1,8 @@ #include <stdint.h> +#ifndef _WIN32 #include <unistd.h> +#endif #include <string.h> #include <stdlib.h> |