]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Declare ssh_compat_getentropy in the right spot. 13175/head
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Fri, 25 Aug 2023 13:00:37 +0000 (15:00 +0200)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Fri, 25 Aug 2023 13:00:37 +0000 (15:00 +0200)
Avoiding a redundant and/or missing declaration (depending HAVE_* defines)

ext/arc4random/arc4random.c
ext/arc4random/includes.h

index afcaa64720e2cc92e19f8879c468110d216b7557..56ebd811e867f740482c65ce906f1e6c21945210 100644 (file)
@@ -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
index 5ef06b816bf26900f3985dad4d3bffc55294705f..f5bedfa183fbbe5aa77367b33419215ec0b94418 100644 (file)
@@ -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)