Enable mbedTLS dynamic memory allocation in user mode on Windows (#1373)

* change user mode openthread to enable dynamic memory allocation in mbedtls

* complete merge by adding OPENTHREAD_MULTIPLE_INSTANCE to last file

* remove some extraneous changes that got pulled in accidentally

* fix spacing

* fix crash in existing tests due to this change

* fix x86 build
This commit is contained in:
Jorge Vergara
2017-02-23 22:01:59 -08:00
committed by Jonathan Hui
parent 1587835134
commit f3817e76cf
17 changed files with 77 additions and 10 deletions
+3 -1
View File
@@ -34,7 +34,9 @@
#include <crypto/hmac_sha256.hpp>
#include <crypto/mbedtls.hpp>
static Thread::Crypto::MbedTls mbedtls;
#ifndef OPENTHREAD_MULTIPLE_INSTANCE
static Thread::Crypto::MbedTls mMbedTls;
#endif
void TestHmacSha256(void)
{