Merge pull request #3779 from embhorn/zd11711

Squelch interfering def of SHA_CTX
This commit is contained in:
toddouska
2021-02-25 16:05:24 -08:00
committed by GitHub

View File

@@ -89,11 +89,13 @@ uint64_t wc_esp32elapsedTime();
/* RAW hash function APIs are not implemented with esp32 hardware acceleration*/
#define WOLFSSL_NO_HASH_RAW
#define SHA_CTX ETS_SHAContext
#if ESP_IDF_VERSION_MAJOR >= 4
#include "esp32/rom/sha.h"
#else
#include "rom/sha.h"
#endif
#undef SHA_CTX
typedef enum {
ESP32_SHA_INIT = 0,