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.
This commit is contained in:
parent
cf2d9e09b3
commit
f0b54fefe9
2 changed files with 8 additions and 1 deletions
1
e_os.h
1
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 */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue