]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
Move RANDOM_SEED_SIZE outside ifdef.
authorDarren Tucker <dtucker@dtucker.net>
Fri, 23 Nov 2018 03:11:20 +0000 (14:11 +1100)
committerDarren Tucker <dtucker@dtucker.net>
Fri, 23 Nov 2018 03:11:20 +0000 (14:11 +1100)
RANDOM_SEED_SIZE is used by both the OpenSSL and non-OpenSSL code
This fixes the build with configureed --without-openssl.

entropy.c

index 97e836087c6ef8469dfbad131b54ad2349d4a217..31a7f1c3ef5460aa911831cab74dae16c9595329 100644 (file)
--- a/entropy.c
+++ b/entropy.c
@@ -24,6 +24,8 @@
 
 #include "includes.h"
 
+#define RANDOM_SEED_SIZE 48
+
 #ifdef WITH_OPENSSL
 
 #include <sys/types.h>
@@ -56,8 +58,6 @@
 #include "sshbuf.h"
 #include "ssherr.h"
 
-#define RANDOM_SEED_SIZE 48
-
 /*
  * Portable OpenSSH PRNG seeding:
  * If OpenSSL has not "internally seeded" itself (e.g. pulled data from