summaryrefslogtreecommitdiff
path: root/entropy.c
diff options
context:
space:
mode:
Diffstat (limited to 'entropy.c')
-rw-r--r--entropy.c17
1 files changed, 14 insertions, 3 deletions
diff --git a/entropy.c b/entropy.c
index b9d238200..e264063e9 100644
--- a/entropy.c
+++ b/entropy.c
@@ -24,6 +24,20 @@
24 24
25#include "includes.h" 25#include "includes.h"
26 26
27#include <sys/types.h>
28#include <sys/wait.h>
29
30#ifdef HAVE_SYS_STAT_H
31# include <sys/stat.h>
32#endif
33
34#ifdef HAVE_FCNTL_H
35# include <fcntl.h>
36#endif
37#include <stdarg.h>
38#include <unistd.h>
39#include <signal.h>
40
27#include <openssl/rand.h> 41#include <openssl/rand.h>
28#include <openssl/crypto.h> 42#include <openssl/crypto.h>
29#include <openssl/err.h> 43#include <openssl/err.h>
@@ -35,7 +49,6 @@
35#include "pathnames.h" 49#include "pathnames.h"
36#include "log.h" 50#include "log.h"
37#include "buffer.h" 51#include "buffer.h"
38#include "bufaux.h"
39 52
40/* 53/*
41 * Portable OpenSSH PRNG seeding: 54 * Portable OpenSSH PRNG seeding:
@@ -48,8 +61,6 @@
48 * XXX: we should tell the child how many bytes we need. 61 * XXX: we should tell the child how many bytes we need.
49 */ 62 */
50 63
51RCSID("$Id: entropy.c,v 1.52 2005/09/27 22:26:30 dtucker Exp $");
52
53#ifndef OPENSSL_PRNG_ONLY 64#ifndef OPENSSL_PRNG_ONLY
54#define RANDOM_SEED_SIZE 48 65#define RANDOM_SEED_SIZE 48
55static uid_t original_uid, original_euid; 66static uid_t original_uid, original_euid;