Skip to content

Commit

Permalink
fix conditional build logic in dispatch test
Browse files Browse the repository at this point in the history
  • Loading branch information
pittma committed Sep 9, 2024
1 parent 58af762 commit 56d8fd6
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions crypto/impl_dispatch_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
#include "fipsmodule/modes/internal.h"
#include "fipsmodule/bn/rsaz_exp.h"

#include "test/file_test.h"

class ImplDispatchTest : public ::testing::Test {
public:
Expand Down Expand Up @@ -247,11 +248,8 @@ TEST_F(ImplDispatchTest, SHA512) {
}
#endif // OPENSSL_AARCH64

#if defined(OPENSSL_X86_64) && !defined(MY_ASSEMBLER_IS_TOO_OLD_512AVX) && \
defined(RSAZ_512_ENABLED)

#include "test/file_test.h"

#if defined(OPENSSL_X86) || defined(OPENSSL_X86_64)
static bssl::UniquePtr<BIGNUM> GetBIGNUM(FileTest *t, const char *attr);

static bssl::UniquePtr<BIGNUM> GetBIGNUM(FileTest *t, const char *attr) {
Expand Down Expand Up @@ -331,7 +329,8 @@ TEST_F(ImplDispatchTest, BN_mod_exp_mont_consttime_x2) {
});
});
}
#endif // OPENSSL_X86_64 && !MY_ASSEMBLER_IS_TOO_OLD_512AVX && RSAZ_512_ENABLED

#endif // x86[_64]

#endif // !OPENSSL_NO_ASM && (OPENSSL_X86 || OPENSSL_X86_64 || OPENSSL_AARCH64)

Expand Down

0 comments on commit 56d8fd6

Please sign in to comment.