summaryrefslogtreecommitdiffhomepage
path: root/dbrandom.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2017-06-14 23:31:42 +0800
committerMatt Johnston <matt@ucc.asn.au>2017-06-14 23:31:42 +0800
commit88ce30beb62716b000289d255deca50006880633 (patch)
treea15e89f770e72a4eef240e776082018ce5579594 /dbrandom.c
parent723ec19eedd2618cd850e703519fd8432c67e44c (diff)
parentd260d5148e2eec62e7af8d6ec86dae438e4a0ec9 (diff)
merge from main
--HG-- branch : fuzz
Diffstat (limited to 'dbrandom.c')
-rw-r--r--dbrandom.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/dbrandom.c b/dbrandom.c
index 3e6e78f..71f25ce 100644
--- a/dbrandom.c
+++ b/dbrandom.c
@@ -59,7 +59,7 @@ process_file(hash_state *hs, const char *filename,
unsigned int readcount;
int ret = DROPBEAR_FAILURE;
-#if DROPBEAR_PRNGD_SOCKET
+#ifdef DROPBEAR_PRNGD_SOCKET
if (prngd)
{
readfd = connect_unix(filename);
@@ -107,7 +107,7 @@ process_file(hash_state *hs, const char *filename,
wantread = MIN(sizeof(readbuf), len-readcount);
}
-#if DROPBEAR_PRNGD_SOCKET
+#ifdef DROPBEAR_PRNGD_SOCKET
if (prngd)
{
char egdcmd[2];
@@ -215,7 +215,7 @@ void seedrandom() {
/* existing state */
sha1_process(&hs, (void*)hashpool, sizeof(hashpool));
-#if DROPBEAR_PRNGD_SOCKET
+#ifdef DROPBEAR_PRNGD_SOCKET
if (process_file(&hs, DROPBEAR_PRNGD_SOCKET, INIT_SEED_SIZE, 1)
!= DROPBEAR_SUCCESS) {
dropbear_exit("Failure reading random device %s",