From 4f93776611b7a9060c171c656ce29d8f67763bbe Mon Sep 17 00:00:00 2001 From: Anthony Hu Date: Wed, 17 Sep 2025 16:21:40 -0400 Subject: [PATCH] Allow building with hashdrbg disabled under fips Fixes ZD20493 --- src/ssh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ssh.c b/src/ssh.c index f98fb3020..4be99f4e6 100644 --- a/src/ssh.c +++ b/src/ssh.c @@ -72,7 +72,7 @@ int wolfSSH_Init(void) #ifdef HAVE_FIPS wolfCrypt_SetCb_fips(myFipsCb); #endif -#ifdef WC_RNG_SEED_CB +#if defined(WC_RNG_SEED_CB) && defined(HAVE_HASHDRBG) wc_SetSeed_Cb(wc_GenerateSeed); #endif #if !defined(NO_FILESYSTEM) && defined(WOLFSSH_ZEPHYR) && \