Skip to content

Commit 48fe5ae

Browse files
committed
Fix re.search on list instead of string in FIPS version detection
1 parent 6892321 commit 48fe5ae

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/build_ffi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ def get_features(local_wolfssl, features):
386386
raise RuntimeError(e)
387387

388388
features["FIPS"] = 1
389-
version_match = re.search(r'#define HAVE_FIPS_VERSION\s+(\d+)', defines)
389+
version_match = re.search(r'#define HAVE_FIPS_VERSION\s+(\d+)', '\n'.join(defines))
390390
if version_match is not None:
391391
features["FIPS_VERSION"] = int(version_match.group(1))
392392
else:

0 commit comments

Comments
 (0)