From 643c14a69b993e85639c80c794b1d371b89644b6 Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Fri, 25 Aug 2023 15:00:37 +0200 Subject: [PATCH] Declare ssh_compat_getentropy in the right spot. Avoiding a redundant and/or missing declaration (depending HAVE_* defines) --- ext/arc4random/arc4random.c | 1 - ext/arc4random/includes.h | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ext/arc4random/arc4random.c b/ext/arc4random/arc4random.c index afcaa64720..56ebd811e8 100644 --- a/ext/arc4random/arc4random.c +++ b/ext/arc4random/arc4random.c @@ -48,7 +48,6 @@ * will call a native getentropy if available then fall back as required. * We use a different name so that OpenSSL cannot call the wrong getentropy. */ -int _ssh_compat_getentropy(void *, size_t); #ifdef getentropy # undef getentropy #endif diff --git a/ext/arc4random/includes.h b/ext/arc4random/includes.h index 5ef06b816b..f5bedfa183 100644 --- a/ext/arc4random/includes.h +++ b/ext/arc4random/includes.h @@ -24,4 +24,6 @@ uint32_t arc4random_uniform(uint32_t upper_bound); void explicit_bzero(void *, size_t len); #endif +int _ssh_compat_getentropy(void *, size_t); + #define DEF_WEAK(x) -- 2.47.2