Skip to content
Permalink
Browse files

Fix fips_cipher_abort warning and other duplicate macros

  • Loading branch information
nerzhul committed Apr 12, 2017
1 parent 4e2479e commit 1399678ffd6faa2ae1642ada1b1b9dc729d6357a
Showing with 0 additions and 5 deletions.
  1. +0 −5 src/util/sha256.c
@@ -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));

0 comments on commit 1399678

Please sign in to comment.