diff options
author | Francois Perrad <francois.perrad@gadz.org> | 2016-11-19 10:38:47 +0100 |
---|---|---|
committer | Francois Perrad <francois.perrad@gadz.org> | 2017-06-01 19:10:37 +0200 |
commit | 08543d0c76152f3643f5d6f3de7c040465049698 (patch) | |
tree | 8b4e8e48fa15bff24801a24b46742ddff9e3a480 | |
parent | 92c4f20089ec1f408e0147911631b750617b0ec9 (diff) |
use #ifdef DROPBEAR_PRNGD_SOCKET instead of #if
-rw-r--r-- | dbrandom.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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]; @@ -185,7 +185,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", |