From 6520bfecc75d4bdc66b19f81683dbae899e2b025 Mon Sep 17 00:00:00 2001 From: Doug Chapman <54039637+dougch@users.noreply.github.com> Date: Thu, 10 Sep 2026 14:58:53 -0700 Subject: [PATCH] fix: declare FIPS service-indicator funcs in curve25519.c curve25519.c calls FIPS_service_indicator_lock_state/unlock_state but never includes their declaring header, relying on an implicit function declaration. Add "../service_indicator/internal.h" to match the 12 other fipsmodule files that use these functions. Implicit declarations are a hard error under C23/newer clang, and in non-FIPS builds this bypasses the intended OPENSSL_INLINE no-op. --- crypto/fipsmodule/curve25519/curve25519.c | 1 + 1 file changed, 1 insertion(+) diff --git a/crypto/fipsmodule/curve25519/curve25519.c b/crypto/fipsmodule/curve25519/curve25519.c index a6ebc490ab9..3cc42da43a8 100644 --- a/crypto/fipsmodule/curve25519/curve25519.c +++ b/crypto/fipsmodule/curve25519/curve25519.c @@ -19,6 +19,7 @@ #include "../../internal.h" #include "../cpucap/internal.h" +#include "../service_indicator/internal.h" #include "internal.h" const uint8_t RFC8032_DOM2_PREFIX[DOM2_PREFIX_SIZE] = {