Skip to content

Commit 1d323ce

Browse files
committed
squashme into FIPS & FIPS-like limits on hash algs for cryptographic uses
1 parent ccd231e commit 1d323ce

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

libclamav/crypto.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -708,7 +708,7 @@ unsigned char *cl_hash_data(const char *alg, const void *buf, size_t len, unsign
708708
EVP_MD *md;
709709
unsigned int i;
710710
size_t cur;
711-
int winres = 0;
711+
bool win_exception = false;
712712

713713
if (OPENSSL_VERSION_NUMBER >= 0x30000000L) {
714714
/* Bypass FIPS restrictions the OpenSSL 3.0 way */
@@ -773,7 +773,7 @@ unsigned char *cl_hash_data(const char *alg, const void *buf, size_t len, unsign
773773
}
774774
EXCEPTION_POSTAMBLE
775775

776-
if (winres) {
776+
if (win_exception) {
777777
if (!(obuf))
778778
free(ret);
779779

0 commit comments

Comments
 (0)