summaryrefslogtreecommitdiff
path: root/entropy.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@dtucker.net>2018-11-23 14:11:20 +1100
committerDarren Tucker <dtucker@dtucker.net>2018-11-23 14:11:20 +1100
commitc721d5877509875c8515df0215fa1dab862013bc (patch)
tree494eb21f21abc079376248ac52335d50c1fbcf76 /entropy.c
parentdeb51552c3ce7ce72c8d0232e4f36f2e7c118c7d (diff)
Move RANDOM_SEED_SIZE outside ifdef.
RANDOM_SEED_SIZE is used by both the OpenSSL and non-OpenSSL code This fixes the build with configureed --without-openssl.
Diffstat (limited to 'entropy.c')
-rw-r--r--entropy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/entropy.c b/entropy.c
index 97e836087..31a7f1c3e 100644
--- a/entropy.c
+++ b/entropy.c
@@ -24,6 +24,8 @@
24 24
25#include "includes.h" 25#include "includes.h"
26 26
27#define RANDOM_SEED_SIZE 48
28
27#ifdef WITH_OPENSSL 29#ifdef WITH_OPENSSL
28 30
29#include <sys/types.h> 31#include <sys/types.h>
@@ -56,8 +58,6 @@
56#include "sshbuf.h" 58#include "sshbuf.h"
57#include "ssherr.h" 59#include "ssherr.h"
58 60
59#define RANDOM_SEED_SIZE 48
60
61/* 61/*
62 * Portable OpenSSH PRNG seeding: 62 * Portable OpenSSH PRNG seeding:
63 * If OpenSSL has not "internally seeded" itself (e.g. pulled data from 63 * If OpenSSL has not "internally seeded" itself (e.g. pulled data from