Some platforms (most notably Windows) do not have a $HOME by default.
authorRichard Levitte <levitte@openssl.org>
Thu, 3 May 2001 07:50:39 +0000 (07:50 +0000)
committerRichard Levitte <levitte@openssl.org>
Thu, 3 May 2001 07:50:39 +0000 (07:50 +0000)
commit3c836ff0f8f108786505e768e8452dab111720c1
tree1687fbddd7eba19bd21e91fe53fba57092d82ffc
parenta95639214538b4239e2a15a2cc8087b87bb1cf93
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