forked from Mirrorlandia_minetest/minetest
Fix fips_cipher_abort warning and other duplicate macros
This commit is contained in:
parent
4e2479e46a
commit
1399678ffd
@ -30,11 +30,6 @@ static void OPENSSL_cleanse(void *ptr, size_t len)
|
|||||||
cleanse_ctr = (unsigned char)ctr;
|
cleanse_ctr = (unsigned char)ctr;
|
||||||
}
|
}
|
||||||
|
|
||||||
# define fips_md_init(alg) fips_md_init_ctx(alg, alg)
|
|
||||||
# define fips_md_init_ctx(alg, cx) \
|
|
||||||
int alg##_Init(cx##_CTX *c)
|
|
||||||
# define fips_cipher_abort(alg) while(0)
|
|
||||||
|
|
||||||
fips_md_init_ctx(SHA224, SHA256)
|
fips_md_init_ctx(SHA224, SHA256)
|
||||||
{
|
{
|
||||||
memset(c, 0, sizeof(*c));
|
memset(c, 0, sizeof(*c));
|
||||||
|
Loading…
Reference in New Issue
Block a user