From b09f283a030efc650cfcb3476932626c5000b921 Mon Sep 17 00:00:00 2001 From: Bradley Hess Date: Wed, 17 Mar 2021 17:59:57 -0400 Subject: [PATCH] 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 Commit-Queue: Adam Langley --- crypto/fipsmodule/self_check/self_check.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/crypto/fipsmodule/self_check/self_check.c b/crypto/fipsmodule/self_check/self_check.c index 39570bd1e..2a58cd359 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,