mirror of
https://github.com/wiire-a/pixiewps.git
synced 2025-07-27 15:54:29 +02:00
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:
parent
838f69d1e1
commit
65dd9975da
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user