Skip to content

Commit ec8ce54

Browse files
authored
Merge pull request #106 from roberthdevries/fix-duplicate-error-strings
Remove duplicate definitions of ERROR_STRINGS/ERROR_STRINGS_ENABLED.
2 parents 2dd22e3 + 6e24833 commit ec8ce54

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

scripts/build_ffi.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,6 @@ def build_ffi(local_wolfssl, features):
497497
int ML_KEM_ENABLED = """ + str(features["ML_KEM"]) + """;
498498
int ML_DSA_ENABLED = """ + str(features["ML_DSA"]) + """;
499499
int HKDF_ENABLED = """ + str(features["HKDF"]) + """;
500-
int ERROR_STRINGS_ENABLED = """ + str(features["ERROR_STRINGS"]) + """;
501500
"""
502501

503502
ffibuilder.set_source( "wolfcrypt._ffi", init_source_string,
@@ -538,7 +537,6 @@ def build_ffi(local_wolfssl, features):
538537
extern int ML_KEM_ENABLED;
539538
extern int ML_DSA_ENABLED;
540539
extern int HKDF_ENABLED;
541-
extern int ERROR_STRINGS_ENABLED;
542540
543541
typedef unsigned char byte;
544542
typedef unsigned int word32;
@@ -1278,11 +1276,6 @@ def build_ffi(local_wolfssl, features):
12781276
int wolfCrypt_GetPrivateKeyReadEnable_fips(enum wc_KeyType);
12791277
"""
12801278

1281-
if features["ERROR_STRINGS"]:
1282-
cdef += """
1283-
const char* wc_GetErrorString(int error);
1284-
"""
1285-
12861279
if features["ML_KEM"] or features["ML_DSA"]:
12871280
cdef += """
12881281
static const int INVALID_DEVID;

0 commit comments

Comments
 (0)