summaryrefslogtreecommitdiff
path: root/e_os.h
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2001-05-03 07:50:11 +0000
committerRichard Levitte <levitte@openssl.org>2001-05-03 07:50:11 +0000
commitf0b54fefe9bf7845ca8d2c137f1f5483ac17320c (patch)
treedb30069e2dfe56fc44ca8e3fb292c91c224c7d83 /e_os.h
parentcf2d9e09b3b0bd0f156ed3831bf6c47b43d3cfc8 (diff)
downloadopenssl-new-f0b54fefe9bf7845ca8d2c137f1f5483ac17320c.tar.gz
Some platforms (most notably Windows) do not have a $HOME by default.
For those, unless the environment variables RANDFILE or HOME are defined (the default case!), RAND_file_name() will return NULL. This change adds a default HOME for those platforms. To add a default HOME for any platform, just define DEFAULT_HOME in the proper place, wrapped in appropriate #ifdef..#endif, in e_os.h.
Diffstat (limited to 'e_os.h')
-rw-r--r--e_os.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/e_os.h b/e_os.h
index 6cef40f5a5..08410f9eb4 100644
--- a/e_os.h
+++ b/e_os.h
@@ -230,6 +230,7 @@ extern "C" {
# define SSLEAY_CONF OPENSSL_CONF
# define NUL_DEV "nul"
# define RFILE ".rnd"
+# define DEFAULT_HOME "C:"
#else /* The non-microsoft world world */