Skip to content

Commit

Permalink
Turn AWSLC_FIPS_FAILURE_CALLBACK support off on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewhop committed Feb 24, 2025
1 parent da3ac4b commit 927a7de
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crypto/fips_callback_test.cc
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0 OR ISC

#if defined(__ELF__) && defined(__GNUC__)

#include <gtest/gtest.h>
#include <openssl/crypto.h>
#include <openssl/curve25519.h>
Expand Down Expand Up @@ -162,3 +164,5 @@ TEST(FIPSCallback, PWCT) {
}
EVP_PKEY_free(dsa_raw);
}

#endif
4 changes: 4 additions & 0 deletions crypto/fipsmodule/bcm.c
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,11 @@ static void BORINGSSL_maybe_set_module_text_permissions(int _permission) {}
#endif // !ASAN

#if defined(AWSLC_FIPS_FAILURE_CALLBACK)
#if defined(__ELF__) && defined(__GNUC__)
WEAK_SYMBOL_FUNC(void, AWS_LC_fips_failure_callback, (const char* message))
#else
#error AWSLC_FIPS_FAILURE_CALLBACK not supported on this platform
#else
#endif

#if defined(_MSC_VER)
Expand Down

0 comments on commit 927a7de

Please sign in to comment.