forked from wolfSSL/wolfssl
Squelch interfering def of SHA_CTX
This commit is contained in:
@ -89,11 +89,13 @@ uint64_t wc_esp32elapsedTime();
|
|||||||
|
|
||||||
/* RAW hash function APIs are not implemented with esp32 hardware acceleration*/
|
/* RAW hash function APIs are not implemented with esp32 hardware acceleration*/
|
||||||
#define WOLFSSL_NO_HASH_RAW
|
#define WOLFSSL_NO_HASH_RAW
|
||||||
|
#define SHA_CTX ETS_SHAContext
|
||||||
#if ESP_IDF_VERSION_MAJOR >= 4
|
#if ESP_IDF_VERSION_MAJOR >= 4
|
||||||
#include "esp32/rom/sha.h"
|
#include "esp32/rom/sha.h"
|
||||||
#else
|
#else
|
||||||
#include "rom/sha.h"
|
#include "rom/sha.h"
|
||||||
#endif
|
#endif
|
||||||
|
#undef SHA_CTX
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
ESP32_SHA_INIT = 0,
|
ESP32_SHA_INIT = 0,
|
||||||
|
Reference in New Issue
Block a user