Skip to content

Commit

Permalink
Fix builds when config.h only defines MBEDTLS_BIGNUM_C
Browse files Browse the repository at this point in the history
Fixes Mbed-TLS#4929

Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
  • Loading branch information
daverodgman committed Dec 6, 2021
1 parent 8c8cea2 commit 351c71b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion include/mbedtls/entropy.h
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ typedef struct mbedtls_entropy_context
* -1 after free. */
#if defined(MBEDTLS_ENTROPY_SHA512_ACCUMULATOR)
mbedtls_sha512_context MBEDTLS_PRIVATE(accumulator);
#else
#elif defined(MBEDTLS_ENTROPY_SHA256_ACCUMULATOR)
mbedtls_sha256_context MBEDTLS_PRIVATE(accumulator);
#endif
int MBEDTLS_PRIVATE(source_count); /* Number of entries used in source. */
Expand Down
1 change: 1 addition & 0 deletions library/bignum.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
#include "mbedtls/error.h"
#include "constant_time_internal.h"

#include <limits.h>
#include <string.h>

#if defined(MBEDTLS_PLATFORM_C)
Expand Down
1 change: 1 addition & 0 deletions programs/fuzz/common.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include "common.h"
#include <limits.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
Expand Down

0 comments on commit 351c71b

Please sign in to comment.