(deps/mbedtls) Cleanups

This commit is contained in:
twinaphex 2020-07-01 17:02:45 +02:00
parent da29ab063e
commit 473f43daf7
4 changed files with 0 additions and 32 deletions

View File

@ -495,9 +495,6 @@
#if defined MBEDTLS_THREADING_PTHREAD
#define POLARSSL_THREADING_PTHREAD MBEDTLS_THREADING_PTHREAD
#endif
#if defined MBEDTLS_TIMING_ALT
#define POLARSSL_TIMING_ALT MBEDTLS_TIMING_ALT
#endif
#if defined MBEDTLS_TIMING_C
#define POLARSSL_TIMING_C MBEDTLS_TIMING_C
#endif

View File

@ -119,21 +119,6 @@
* \{
*/
/**
* \def MBEDTLS_TIMING_ALT
*
* Uncomment to provide your own alternate implementation for mbedtls_timing_hardclock(),
* mbedtls_timing_get_timer(), mbedtls_set_alarm(), mbedtls_set/get_delay()
*
* Only works if you have MBEDTLS_TIMING_C enabled.
*
* You will need to provide a header "timing_alt.h" and an implementation at
* compile time.
*/
#if 0
#define MBEDTLS_TIMING_ALT
#endif
/**
* \def MBEDTLS_AES_ALT
*
@ -2212,11 +2197,6 @@
#define MBEDTLS_ENTROPY_MIN_HARDWARE 32 /**< Default minimum number of bytes required for the hardware entropy source mbedtls_hardware_poll() before entropy is released */
#endif
/* Memory buffer allocator options */
#if 0
#define MBEDTLS_MEMORY_ALIGN_MULTIPLE 4 /**< Align on multiples of this value */
#endif
/* Platform options */
#if 0
#define MBEDTLS_PLATFORM_STD_TIME time /**< Default time to use, can be undefined. MBEDTLS_HAVE_TIME must be enabled */

View File

@ -29,7 +29,6 @@
#include MBEDTLS_CONFIG_FILE
#endif
#if !defined(MBEDTLS_TIMING_ALT)
/* Regular implementation */
#include <stdint.h>
@ -116,10 +115,6 @@ int mbedtls_timing_get_delay( void *data );
}
#endif
#else /* MBEDTLS_TIMING_ALT */
#include "timing_alt.h"
#endif /* MBEDTLS_TIMING_ALT */
#ifdef __cplusplus
extern "C" {
#endif

View File

@ -29,8 +29,6 @@
#include "mbedtls/timing.h"
#if !defined(MBEDTLS_TIMING_ALT)
#if !defined(unix) && !defined(__unix__) && !defined(__unix) && \
!defined(__APPLE__) && !defined(_WIN32) && !defined(__HAIKU__)
#error "This module only works on Unix and Windows, see MBEDTLS_TIMING_C in config.h"
@ -348,6 +346,4 @@ int mbedtls_timing_get_delay( void *data )
return( 0 );
}
#endif /* !MBEDTLS_TIMING_ALT */
#endif /* MBEDTLS_TIMING_C */