diff --git a/scripts/build_ffi.py b/scripts/build_ffi.py index 978dac8..01b3361 100644 --- a/scripts/build_ffi.py +++ b/scripts/build_ffi.py @@ -497,7 +497,6 @@ def build_ffi(local_wolfssl, features): int ML_KEM_ENABLED = """ + str(features["ML_KEM"]) + """; int ML_DSA_ENABLED = """ + str(features["ML_DSA"]) + """; int HKDF_ENABLED = """ + str(features["HKDF"]) + """; - int ERROR_STRINGS_ENABLED = """ + str(features["ERROR_STRINGS"]) + """; """ ffibuilder.set_source( "wolfcrypt._ffi", init_source_string, @@ -538,7 +537,6 @@ def build_ffi(local_wolfssl, features): extern int ML_KEM_ENABLED; extern int ML_DSA_ENABLED; extern int HKDF_ENABLED; - extern int ERROR_STRINGS_ENABLED; typedef unsigned char byte; typedef unsigned int word32; @@ -1278,11 +1276,6 @@ def build_ffi(local_wolfssl, features): int wolfCrypt_GetPrivateKeyReadEnable_fips(enum wc_KeyType); """ - if features["ERROR_STRINGS"]: - cdef += """ - const char* wc_GetErrorString(int error); - """ - if features["ML_KEM"] or features["ML_DSA"]: cdef += """ static const int INVALID_DEVID;