commit | b09f283a030efc650cfcb3476932626c5000b921 | [log] [tgz] |
---|---|---|
author | Bradley Hess <bdhess@google.com> | Wed Mar 17 17:59:57 2021 -0400 |
committer | CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org> | Thu Mar 18 17:18:44 2021 +0000 |
tree | de4f37d920b4ab9feeb7ecaea645380ce9b716dd | |
parent | b2147413e01666859552b6544c1d55739ca9bd6a [diff] |
Add a Windows no-op impl of BORINGSSL_self_test Change-Id: Id5b5b639023d30a8ebd763d02e1787fbf9d79288 Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/46245 Reviewed-by: Adam Langley <agl@google.com> Commit-Queue: Adam Langley <agl@google.com>
diff --git a/crypto/fipsmodule/self_check/self_check.c b/crypto/fipsmodule/self_check/self_check.c index 39570bd..2a58cd3 100644 --- a/crypto/fipsmodule/self_check/self_check.c +++ b/crypto/fipsmodule/self_check/self_check.c
@@ -38,8 +38,14 @@ // MSVC wants to put a NUL byte at the end of non-char arrays and so cannot -// compile this. -#if !defined(_MSC_VER) +// compile the real logic. +#if defined(_MSC_VER) + +int BORINGSSL_self_test(void) { + return 0; +} + +#else #if defined(BORINGSSL_FIPS) && defined(OPENSSL_ANDROID) // FIPS builds on Android will test for flag files, named after the module hash,