diff --git a/wolfcrypt/src/sp_sm2_arm32.c b/wolfcrypt/src/sp_sm2_arm32.c index 211b1439204..29bc82c613d 100644 --- a/wolfcrypt/src/sp_sm2_arm32.c +++ b/wolfcrypt/src/sp_sm2_arm32.c @@ -27,7 +27,11 @@ #ifdef WOLFSSL_SM2 -#error "See https://github.com/wolfSSL/wolfsm for implementation of this file" + #if defined(WOLFSSL_ESPIDF) + /* not used by Espressif ESP-IDF */ + #else + #error "See https://github.com/wolfSSL/wolfsm for implementation of this file" + #endif #endif diff --git a/wolfcrypt/src/sp_sm2_arm64.c b/wolfcrypt/src/sp_sm2_arm64.c index 5c84948a013..e2b035b7a39 100644 --- a/wolfcrypt/src/sp_sm2_arm64.c +++ b/wolfcrypt/src/sp_sm2_arm64.c @@ -27,7 +27,11 @@ #ifdef WOLFSSL_SM2 -#error "See https://github.com/wolfSSL/wolfsm for implementation of this file" + #if defined(WOLFSSL_ESPIDF) + /* not used by Espressif ESP-IDF */ + #else + #error "See https://github.com/wolfSSL/wolfsm for implementation of this file" + #endif #endif diff --git a/wolfcrypt/src/sp_sm2_armthumb.c b/wolfcrypt/src/sp_sm2_armthumb.c index 5d26e27be9e..d6f8ef2f9b0 100644 --- a/wolfcrypt/src/sp_sm2_armthumb.c +++ b/wolfcrypt/src/sp_sm2_armthumb.c @@ -27,7 +27,11 @@ #ifdef WOLFSSL_SM2 -#error "See https://github.com/wolfSSL/wolfsm for implementation of this file" + #if defined(WOLFSSL_ESPIDF) + /* not used by Espressif ESP-IDF */ + #else + #error "See https://github.com/wolfSSL/wolfsm for implementation of this file" + #endif #endif diff --git a/wolfcrypt/src/sp_sm2_c32.c b/wolfcrypt/src/sp_sm2_c32.c index 41c40d1ef37..e20da17f352 100644 --- a/wolfcrypt/src/sp_sm2_c32.c +++ b/wolfcrypt/src/sp_sm2_c32.c @@ -27,7 +27,11 @@ #ifdef WOLFSSL_SM2 -#error "See https://github.com/wolfSSL/wolfsm for implementation of this file" + #if defined(WOLFSSL_ESPIDF) + /* not used by Espressif ESP-IDF */ + #else + #error "See https://github.com/wolfSSL/wolfsm for implementation of this file" + #endif #endif diff --git a/wolfcrypt/src/sp_sm2_c64.c b/wolfcrypt/src/sp_sm2_c64.c index ee380165446..90c09f852ee 100644 --- a/wolfcrypt/src/sp_sm2_c64.c +++ b/wolfcrypt/src/sp_sm2_c64.c @@ -27,7 +27,11 @@ #ifdef WOLFSSL_SM2 -#error "See https://github.com/wolfSSL/wolfsm for implementation of this file" + #if defined(WOLFSSL_ESPIDF) + /* not used by Espressif ESP-IDF */ + #else + #error "See https://github.com/wolfSSL/wolfsm for implementation of this file" + #endif #endif diff --git a/wolfcrypt/src/sp_sm2_cortexm.c b/wolfcrypt/src/sp_sm2_cortexm.c index 3bda85f0268..e281cfe9ccf 100644 --- a/wolfcrypt/src/sp_sm2_cortexm.c +++ b/wolfcrypt/src/sp_sm2_cortexm.c @@ -27,7 +27,11 @@ #ifdef WOLFSSL_SM2 -#error "See https://github.com/wolfSSL/wolfsm for implementation of this file" + #if defined(WOLFSSL_ESPIDF) + /* not used by Espressif ESP-IDF */ + #else + #error "See https://github.com/wolfSSL/wolfsm for implementation of this file" + #endif #endif diff --git a/wolfcrypt/src/sp_sm2_x86_64.c b/wolfcrypt/src/sp_sm2_x86_64.c index f73e408344f..2f4d9e5a476 100644 --- a/wolfcrypt/src/sp_sm2_x86_64.c +++ b/wolfcrypt/src/sp_sm2_x86_64.c @@ -27,7 +27,11 @@ #ifdef WOLFSSL_SM2 -#error "See https://github.com/wolfSSL/wolfsm for implementation of this file" + #if defined(WOLFSSL_ESPIDF) + /* not used by Espressif ESP-IDF */ + #else + #error "See https://github.com/wolfSSL/wolfsm for implementation of this file" + #endif #endif