fipsoracle: Combine all test oracles into a single binary.
Change-Id: If53f88135976e5f8f113c0e68bd880e378c98fd9
Reviewed-on: https://boringssl-review.googlesource.com/15885
Reviewed-by: Martin Kreichgauer <martinkr@google.com>
Reviewed-by: Adam Langley <agl@google.com>
diff --git a/fipsoracle/cavp_sha_monte_test.cc b/fipsoracle/cavp_sha_monte_test.cc
index 47b885e..91fbc6c 100644
--- a/fipsoracle/cavp_sha_monte_test.cc
+++ b/fipsoracle/cavp_sha_monte_test.cc
@@ -25,10 +25,14 @@
#include "cavp_test_util.h"
+namespace {
+
struct TestCtx {
std::string hash;
};
+}
+
static bool TestSHAMonte(FileTest *t, void *arg) {
TestCtx *ctx = reinterpret_cast<TestCtx *>(arg);
@@ -82,9 +86,7 @@
return 1;
}
-int main(int argc, char **argv) {
- CRYPTO_library_init();
-
+int cavp_sha_monte_test_main(int argc, char **argv) {
if (argc != 3) {
return usage(argv[0]);
}