From 770268f2b3c719ce4160c6cf96bf0c256dc2bc33 Mon Sep 17 00:00:00 2001 From: Paul Bakker Date: Mon, 5 May 2014 11:40:14 +0200 Subject: [PATCH] Fix deprecated references to POLARSSL_CONFIG_OPTIONS --- include/polarssl/bignum.h | 7 ++++--- include/polarssl/check_config.h | 4 ++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/include/polarssl/bignum.h b/include/polarssl/bignum.h index da18599dc..f832db5ea 100644 --- a/include/polarssl/bignum.h +++ b/include/polarssl/bignum.h @@ -69,7 +69,7 @@ typedef UINT64 uint64_t; */ #define POLARSSL_MPI_MAX_LIMBS 10000 -#if !defined(POLARSSL_CONFIG_OPTIONS) +#if !defined(POLARSSL_MPI_WINDOW_SIZE) /* * Maximum window size used for modular exponentiation. Default: 6 * Minimum value: 1. Maximum value: 6. @@ -80,7 +80,9 @@ typedef UINT64 uint64_t; * Reduction in size, reduces speed. */ #define POLARSSL_MPI_WINDOW_SIZE 6 /**< Maximum windows size used. */ +#endif /* !POLARSSL_MPI_WINDOW_SIZE */ +#if !defined(POLARSSL_MPI_MAX_SIZE) /* * Maximum size of MPIs allowed in bits and bytes for user-MPIs. * ( Default: 512 bytes => 4096 bits, Maximum tested: 2048 bytes => 16384 bits ) @@ -89,8 +91,7 @@ typedef UINT64 uint64_t; * of limbs required (POLARSSL_MPI_MAX_LIMBS) is higher. */ #define POLARSSL_MPI_MAX_SIZE 512 /**< Maximum number of bytes for usable MPIs. */ - -#endif /* !POLARSSL_CONFIG_OPTIONS */ +#endif /* !POLARSSL_MPI_MAX_SIZE */ #define POLARSSL_MPI_MAX_BITS ( 8 * POLARSSL_MPI_MAX_SIZE ) /**< Maximum number of bits for usable MPIs. */ diff --git a/include/polarssl/check_config.h b/include/polarssl/check_config.h index 8113e18e4..c4c570c7f 100644 --- a/include/polarssl/check_config.h +++ b/include/polarssl/check_config.h @@ -84,12 +84,12 @@ #error "POLARSSL_ENTROPY_C defined, but not all prerequisites" #endif #if defined(POLARSSL_ENTROPY_C) && defined(POLARSSL_SHA512_C) && \ - defined(POLARSSL_CONFIG_OPTIONS) && (CTR_DRBG_ENTROPY_LEN > 64) + defined(CTR_DRBG_ENTROPY_LEN) && (CTR_DRBG_ENTROPY_LEN > 64) #error "CTR_DRBG_ENTROPY_LEN value too high" #endif #if defined(POLARSSL_ENTROPY_C) && \ ( !defined(POLARSSL_SHA512_C) || defined(POLARSSL_ENTROPY_FORCE_SHA256) ) \ - && defined(POLARSSL_CONFIG_OPTIONS) && (CTR_DRBG_ENTROPY_LEN > 32) + && defined(CTR_DRBG_ENTROPY_LEN) && (CTR_DRBG_ENTROPY_LEN > 32) #error "CTR_DRBG_ENTROPY_LEN value too high" #endif #if defined(POLARSSL_ENTROPY_C) && \