Properly removed tomcrypt LTC_ARGCHK via config macro

This way <signal.h> doesn't get included and (hopefully) the program compiles on macOS without _DARWIN_C_SOURCE.
This commit is contained in:
wiire-a 2018-01-06 16:01:31 +01:00
parent 838f69d1e1
commit 65dd9975da
4 changed files with 1 additions and 12 deletions

View File

@ -30,9 +30,6 @@
#include "tomcrypt.h"
#undef LTC_ARGCHK
#define LTC_ARGCHK(X) do {} while(0)
#define SETUP rijndael_setup
#define ECB_ENC rijndael_ecb_encrypt
#define ECB_DEC rijndael_ecb_decrypt
@ -416,4 +413,3 @@ int ECB_KS(int *keysize)
return CRYPT_OK;
}
}

View File

@ -8,9 +8,6 @@
*/
#include "tomcrypt.h"
#undef LTC_ARGCHK
#define LTC_ARGCHK(X) do {} while(0)
/**
@file cbc_start.c
CBC implementation, start chain, Tom St Denis

View File

@ -9,9 +9,6 @@
#include "tomcrypt.h"
#undef LTC_ARGCHK
#define LTC_ARGCHK(X) do {} while(0)
/* Various logical functions */
#define Ch(x,y,z) (z ^ (x & (y ^ z)))
#define Maj(x,y,z) (((x | y) & z) | (x & y))
@ -205,4 +202,3 @@ int sha256_done(hash_state * md, unsigned char *out)
}
return CRYPT_OK;
}

View File

@ -63,7 +63,7 @@ LTC_EXPORT int LTC_CALL XSTRCMP(const char *s1, const char *s2);
/* type of argument checking, 0=default, 1=fatal and 2=error+continue, 3=nothing */
#ifndef ARGTYPE
#define ARGTYPE 0
#define ARGTYPE 3
#endif
#undef LTC_ENCRYPT