mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-08-07 06:42:56 +03:00
Include limits.h where needed
This will be needed when TF-PSA-Crypto's `build_info.h` stops including `limits.h`, which it currently does by accident because it includes `check_config.h` which wants `limits.h` to check `CHAR_BIT`. Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
#include "mbedtls/oid.h"
|
||||
#include "x509_oid.h"
|
||||
|
||||
#include <limits.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
|
@@ -14,6 +14,7 @@
|
||||
#include "mbedtls/oid.h"
|
||||
#include "x509_oid.h"
|
||||
|
||||
#include <limits.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "mbedtls/platform.h"
|
||||
|
@@ -27,6 +27,7 @@
|
||||
#include "x509_oid.h"
|
||||
#include "mbedtls/platform_util.h"
|
||||
|
||||
#include <limits.h>
|
||||
#include <string.h>
|
||||
|
||||
#if defined(MBEDTLS_PEM_PARSE_C)
|
||||
|
@@ -16,6 +16,7 @@
|
||||
|
||||
#include "mbedtls/build_info.h"
|
||||
|
||||
#include <limits.h>
|
||||
#if defined(MBEDTLS_PLATFORM_C)
|
||||
#include "mbedtls/platform.h"
|
||||
#else
|
||||
|
@@ -11,6 +11,8 @@
|
||||
#include <test/ssl_helpers.h>
|
||||
#include "mbedtls/psa_util.h"
|
||||
|
||||
#include <limits.h>
|
||||
|
||||
#if defined(MBEDTLS_SSL_TLS_C)
|
||||
int mbedtls_test_random(void *p_rng, unsigned char *output, size_t output_len)
|
||||
{
|
||||
|
Reference in New Issue
Block a user