Skip to content

Commit

Permalink
Fix fips_cipher_abort warning and other duplicate macros
Browse files Browse the repository at this point in the history
  • Loading branch information
nerzhul committed Apr 12, 2017
1 parent 4e2479e commit 1399678
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/util/sha256.c
Expand Up @@ -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));
Expand Down

0 comments on commit 1399678

Please sign in to comment.