From 0ba9684b5635cdd457ef0e1115174d2904627503 Mon Sep 17 00:00:00 2001 From: deraadt <> Date: Fri, 18 Apr 2014 11:31:16 +0000 Subject: define RFILE only in the file that needs it --- src/lib/libcrypto/rand/randfile.c | 2 +- src/lib/libssl/src/crypto/rand/randfile.c | 2 +- src/lib/libssl/src/e_os.h | 9 --------- 3 files changed, 2 insertions(+), 11 deletions(-) (limited to 'src') diff --git a/src/lib/libcrypto/rand/randfile.c b/src/lib/libcrypto/rand/randfile.c index 9ba103369f..c47d1f7224 100644 --- a/src/lib/libcrypto/rand/randfile.c +++ b/src/lib/libcrypto/rand/randfile.c @@ -74,7 +74,7 @@ #define BUFSIZE 1024 #define RAND_DATA 1024 -/* #define RFILE ".rnd" - defined in ../../e_os.h */ +#define RFILE ".rnd" /* Note that these functions are intended for seed files only. * Entropy devices and EGD sockets are handled in rand_unix.c */ diff --git a/src/lib/libssl/src/crypto/rand/randfile.c b/src/lib/libssl/src/crypto/rand/randfile.c index 9ba103369f..c47d1f7224 100644 --- a/src/lib/libssl/src/crypto/rand/randfile.c +++ b/src/lib/libssl/src/crypto/rand/randfile.c @@ -74,7 +74,7 @@ #define BUFSIZE 1024 #define RAND_DATA 1024 -/* #define RFILE ".rnd" - defined in ../../e_os.h */ +#define RFILE ".rnd" /* Note that these functions are intended for seed files only. * Entropy devices and EGD sockets are handled in rand_unix.c */ diff --git a/src/lib/libssl/src/e_os.h b/src/lib/libssl/src/e_os.h index 8efb7f234b..7de4dc09b3 100644 --- a/src/lib/libssl/src/e_os.h +++ b/src/lib/libssl/src/e_os.h @@ -70,18 +70,9 @@ #include -#ifdef __cplusplus -extern "C" { -#endif - #define OPENSSL_CONF "openssl.cnf" -#define RFILE ".rnd" #define OPENSSL_USE_IPV6 1 -#ifdef __cplusplus -} -#endif - #endif -- cgit v1.2.3-55-g6feb