1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-29 11:41:15 +03:00

Merge pull request #5167 from tom-cosgrove-arm/fix-builds-with-only-mbedtls_bignum_c-defined

Backport 2.x: Fix builds when config.h only defines MBEDTLS_BIGNUM_C
This commit is contained in:
Gilles Peskine
2021-12-07 12:38:04 +01:00
committed by GitHub
4 changed files with 6 additions and 1 deletions

View File

@ -130,7 +130,7 @@ typedef struct mbedtls_entropy_context
* -1 after free. */
#if defined(MBEDTLS_ENTROPY_SHA512_ACCUMULATOR)
mbedtls_sha512_context accumulator;
#else
#elif defined(MBEDTLS_ENTROPY_SHA256_ACCUMULATOR)
mbedtls_sha256_context accumulator;
#endif
int source_count; /* Number of entries used in source. */