mirror of https://github.com/ARMmbed/mbed-os.git
Changed order of config file checking in include defines
parent
08fd15796a
commit
235949b1f4
|
@ -28,10 +28,10 @@
|
||||||
#if !defined(SHA1_ALT_H)
|
#if !defined(SHA1_ALT_H)
|
||||||
#define SHA1_ALT_H
|
#define SHA1_ALT_H
|
||||||
|
|
||||||
#if !defined(MBEDTLS_CONFIG_FILE)
|
#if defined(MBEDTLS_CONFIG_FILE)
|
||||||
#include "config.h"
|
|
||||||
#else
|
|
||||||
#include MBEDTLS_CONFIG_FILE
|
#include MBEDTLS_CONFIG_FILE
|
||||||
|
#else
|
||||||
|
#include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "crypto_common.h"
|
#include "crypto_common.h"
|
||||||
|
|
|
@ -29,10 +29,10 @@
|
||||||
#if !defined(SHA256_ALT_H)
|
#if !defined(SHA256_ALT_H)
|
||||||
#define SHA256_ALT_H
|
#define SHA256_ALT_H
|
||||||
|
|
||||||
#if !defined(MBEDTLS_CONFIG_FILE)
|
#if defined(MBEDTLS_CONFIG_FILE)
|
||||||
#include "config.h"
|
|
||||||
#else
|
|
||||||
#include MBEDTLS_CONFIG_FILE
|
#include MBEDTLS_CONFIG_FILE
|
||||||
|
#else
|
||||||
|
#include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "crypto_common.h"
|
#include "crypto_common.h"
|
||||||
|
|
|
@ -28,10 +28,10 @@
|
||||||
#if !defined(SHA512_ALT_H)
|
#if !defined(SHA512_ALT_H)
|
||||||
#define SHA512_ALT_H
|
#define SHA512_ALT_H
|
||||||
|
|
||||||
#if !defined(MBEDTLS_CONFIG_FILE)
|
#if defined(MBEDTLS_CONFIG_FILE)
|
||||||
#include "config.h"
|
|
||||||
#else
|
|
||||||
#include MBEDTLS_CONFIG_FILE
|
#include MBEDTLS_CONFIG_FILE
|
||||||
|
#else
|
||||||
|
#include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "crypto_common.h"
|
#include "crypto_common.h"
|
||||||
|
|
|
@ -28,10 +28,10 @@
|
||||||
#if !defined(SHA1_ALT_H)
|
#if !defined(SHA1_ALT_H)
|
||||||
#define SHA1_ALT_H
|
#define SHA1_ALT_H
|
||||||
|
|
||||||
#if !defined(MBEDTLS_CONFIG_FILE)
|
#if defined(MBEDTLS_CONFIG_FILE)
|
||||||
#include "config.h"
|
|
||||||
#else
|
|
||||||
#include MBEDTLS_CONFIG_FILE
|
#include MBEDTLS_CONFIG_FILE
|
||||||
|
#else
|
||||||
|
#include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "crypto_common.h"
|
#include "crypto_common.h"
|
||||||
|
|
|
@ -29,10 +29,10 @@
|
||||||
#if !defined(SHA256_ALT_H)
|
#if !defined(SHA256_ALT_H)
|
||||||
#define SHA256_ALT_H
|
#define SHA256_ALT_H
|
||||||
|
|
||||||
#if !defined(MBEDTLS_CONFIG_FILE)
|
#if defined(MBEDTLS_CONFIG_FILE)
|
||||||
#include "config.h"
|
|
||||||
#else
|
|
||||||
#include MBEDTLS_CONFIG_FILE
|
#include MBEDTLS_CONFIG_FILE
|
||||||
|
#else
|
||||||
|
#include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "crypto_common.h"
|
#include "crypto_common.h"
|
||||||
|
|
|
@ -28,10 +28,10 @@
|
||||||
#if !defined(SHA512_ALT_H)
|
#if !defined(SHA512_ALT_H)
|
||||||
#define SHA512_ALT_H
|
#define SHA512_ALT_H
|
||||||
|
|
||||||
#if !defined(MBEDTLS_CONFIG_FILE)
|
#if defined(MBEDTLS_CONFIG_FILE)
|
||||||
#include "config.h"
|
|
||||||
#else
|
|
||||||
#include MBEDTLS_CONFIG_FILE
|
#include MBEDTLS_CONFIG_FILE
|
||||||
|
#else
|
||||||
|
#include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "crypto_common.h"
|
#include "crypto_common.h"
|
||||||
|
|
|
@ -122,7 +122,6 @@ static int aes_set_keys( mbedtls_aes_context *ctx, const unsigned char *key,
|
||||||
if (CY_CRYPTO_SUCCESS != status)
|
if (CY_CRYPTO_SUCCESS != status)
|
||||||
{
|
{
|
||||||
ret = MBEDTLS_ERR_AES_HW_ACCEL_FAILED;
|
ret = MBEDTLS_ERR_AES_HW_ACCEL_FAILED;
|
||||||
goto exit;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
exit:
|
exit:
|
||||||
|
|
|
@ -27,10 +27,10 @@
|
||||||
#if !defined(CRYPTO_COMMON_H)
|
#if !defined(CRYPTO_COMMON_H)
|
||||||
#define CRYPTO_COMMON_H
|
#define CRYPTO_COMMON_H
|
||||||
|
|
||||||
#if !defined(MBEDTLS_CONFIG_FILE)
|
#if defined(MBEDTLS_CONFIG_FILE)
|
||||||
#include "mbedtls/config.h"
|
|
||||||
#else
|
|
||||||
#include MBEDTLS_CONFIG_FILE
|
#include MBEDTLS_CONFIG_FILE
|
||||||
|
#else
|
||||||
|
#include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "mbedtls/ecp.h"
|
#include "mbedtls/ecp.h"
|
||||||
|
|
|
@ -25,10 +25,10 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if !defined(MBEDTLS_CONFIG_FILE)
|
#if defined(MBEDTLS_CONFIG_FILE)
|
||||||
#include "mbedtls/config.h"
|
|
||||||
#else
|
|
||||||
#include MBEDTLS_CONFIG_FILE
|
#include MBEDTLS_CONFIG_FILE
|
||||||
|
#else
|
||||||
|
#include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(MBEDTLS_ECDSA_C)
|
#if defined(MBEDTLS_ECDSA_C)
|
||||||
|
|
|
@ -43,10 +43,10 @@
|
||||||
* <http://eprint.iacr.org/2004/342.pdf>
|
* <http://eprint.iacr.org/2004/342.pdf>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if !defined(MBEDTLS_CONFIG_FILE)
|
#if defined(MBEDTLS_CONFIG_FILE)
|
||||||
#include "mbedtls/config.h"
|
|
||||||
#else
|
|
||||||
#include MBEDTLS_CONFIG_FILE
|
#include MBEDTLS_CONFIG_FILE
|
||||||
|
#else
|
||||||
|
#include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(MBEDTLS_ECP_C)
|
#if defined(MBEDTLS_ECP_C)
|
||||||
|
|
|
@ -25,10 +25,10 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if !defined(MBEDTLS_CONFIG_FILE)
|
#if defined(MBEDTLS_CONFIG_FILE)
|
||||||
#include "mbedtls/config.h"
|
|
||||||
#else
|
|
||||||
#include MBEDTLS_CONFIG_FILE
|
#include MBEDTLS_CONFIG_FILE
|
||||||
|
#else
|
||||||
|
#include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(MBEDTLS_ECP_C)
|
#if defined(MBEDTLS_ECP_C)
|
||||||
|
|
|
@ -26,10 +26,10 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#if !defined(MBEDTLS_CONFIG_FILE)
|
#if defined(MBEDTLS_CONFIG_FILE)
|
||||||
#include "mbedtls/config.h"
|
|
||||||
#else
|
|
||||||
#include MBEDTLS_CONFIG_FILE
|
#include MBEDTLS_CONFIG_FILE
|
||||||
|
#else
|
||||||
|
#include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(MBEDTLS_SHA1_C)
|
#if defined(MBEDTLS_SHA1_C)
|
||||||
|
|
|
@ -25,10 +25,10 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if !defined(MBEDTLS_CONFIG_FILE)
|
#if defined(MBEDTLS_CONFIG_FILE)
|
||||||
#include "mbedtls/config.h"
|
|
||||||
#else
|
|
||||||
#include MBEDTLS_CONFIG_FILE
|
#include MBEDTLS_CONFIG_FILE
|
||||||
|
#else
|
||||||
|
#include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(MBEDTLS_SHA256_C)
|
#if defined(MBEDTLS_SHA256_C)
|
||||||
|
|
|
@ -25,10 +25,10 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if !defined(MBEDTLS_CONFIG_FILE)
|
#if defined(MBEDTLS_CONFIG_FILE)
|
||||||
#include "mbedtls/config.h"
|
|
||||||
#else
|
|
||||||
#include MBEDTLS_CONFIG_FILE
|
#include MBEDTLS_CONFIG_FILE
|
||||||
|
#else
|
||||||
|
#include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(MBEDTLS_SHA512_C)
|
#if defined(MBEDTLS_SHA512_C)
|
||||||
|
|
Loading…
Reference in New Issue