Fix fips_cipher_abort warning and other duplicate macros

This commit is contained in:
Loic Blot 2017-04-12 09:05:27 +02:00
parent 4e2479e46a
commit 1399678ffd
No known key found for this signature in database
GPG Key ID: EFAA458E8C153987

@ -30,11 +30,6 @@ static void OPENSSL_cleanse(void *ptr, size_t len)
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)
{
memset(c, 0, sizeof(*c));