From 8097632475b8093f669ef33fa24414fc36e51eea Mon Sep 17 00:00:00 2001 From: Adam Langley Date: Tue, 29 Sep 2020 10:55:55 -0700 Subject: [PATCH] modulewrapper: fix unknown functions. Due to a typo, if an unknown function was requested it was previously ignored. Change-Id: Id815c4b7e80d1452034b10bf9c7beb80a5ac3ed2 Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/43125 Reviewed-by: David Benjamin --- util/fipstools/acvp/modulewrapper/modulewrapper.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/util/fipstools/acvp/modulewrapper/modulewrapper.cc b/util/fipstools/acvp/modulewrapper/modulewrapper.cc index 219fe7ed7..6ea51432b 100644 --- a/util/fipstools/acvp/modulewrapper/modulewrapper.cc +++ b/util/fipstools/acvp/modulewrapper/modulewrapper.cc @@ -703,7 +703,7 @@ int main() { offset += nums[i + 1]; } - bool found = true; + bool found = false; for (const auto &func : kFunctions) { if (args[0].size() == strlen(func.name) && memcmp(args[0].data(), func.name, args[0].size()) == 0) { @@ -715,6 +715,7 @@ int main() { } if (!func.handler(&args[1])) { + fprintf(stderr, "\'%s\' operation failed.\n", func.name); return 4; }