Some platforms (most notably Windows) do not have a $HOME by default.
authorRichard Levitte <levitte@openssl.org>
Thu, 3 May 2001 07:50:11 +0000 (07:50 +0000)
committerRichard Levitte <levitte@openssl.org>
Thu, 3 May 2001 07:50:11 +0000 (07:50 +0000)
commitf0b54fefe9bf7845ca8d2c137f1f5483ac17320c
treedb30069e2dfe56fc44ca8e3fb292c91c224c7d83
parentcf2d9e09b3b0bd0f156ed3831bf6c47b43d3cfc8
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.
crypto/rand/randfile.c
e_os.h