remove crypto when missing ECDH

pull/6932/head
paul-szczepanek-arm 2018-05-09 12:27:43 +01:00
parent fee986750d
commit b95da8d8c4
3 changed files with 8 additions and 2 deletions

View File

@ -24,6 +24,7 @@
#include <stdio.h>
#include <string.h>
#if defined(MBEDTLS_ECDH_C)
#include "mbedtls/platform.h"
#include "mbedtls/ecdh.h"
@ -183,3 +184,5 @@ void CryptoToolbox::swap_endian(uint8_t* buf, size_t len) {
} // pal
} // ble
#endif //defined(MBEDTLS_ECDH_C)

View File

@ -25,6 +25,8 @@
#include MBEDTLS_CONFIG_FILE
#endif
#if defined(MBEDTLS_ECDH_C)
#include "mbedtls/platform.h"
#include "mbedtls/entropy.h"
#include "mbedtls/ecp.h"
@ -139,4 +141,6 @@ private:
} // pal
} // ble
#endif // defined(MBEDTLS_ECDH_C)
#endif // NRF5X_CRYPTO_

View File

@ -20,9 +20,8 @@
#include "ble/BLETypes.h"
#include "ble/pal/PalSecurityManager.h"
#include "nrf_ble.h"
#if defined(MBEDTLS_ECDH_C)
#include "nRF5xCrypto.h"
#endif
namespace ble {
namespace pal {