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
  • Loading branch information
tom-cosgrove-arm committed Nov 15, 2021
1 parent 95c3971 commit 00e4249
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 @@ -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. */
Expand Down
1 change: 1 addition & 0 deletions library/bignum.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
#include "mbedtls/platform_util.h"
#include "mbedtls/error.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 00e4249

Please sign in to comment.