Commit Graph

17 Commits

Author SHA1 Message Date
Asanka Herath
9b466f35fb Windows: RAND_file_name() should look up profile path
If RANDFILE and HOME environment variables aren't defined, failover to
looking up the user's profile path.  In particular, default to a file
named .rnd in the user's local (non-roamin) application data
directory.
2010-08-20 13:09:45 -04:00
Love Hornquist Astrand
efa5a314a8 fix warnings 2010-06-03 16:16:48 -07:00
Love Hornquist Astrand
d02418be27 windows doesn't have /dev/random 2010-03-21 16:44:30 -07:00
Love Hornquist Astrand
08572822da use pathp for pathbased file names 2010-03-21 16:07:45 -07:00
Love Hornquist Astrand
c491b59007 pull out unix /dev/random if we cant get users home directory 2010-03-21 11:01:24 -07:00
Love Hornquist Astrand
c8fc15de86 random number from windows csp 2009-11-25 07:52:39 -08:00
Love Hornquist Astrand
b9bb21f185 just return if we are asked for 0 bytes 2009-11-22 12:51:23 -08:00
Love Hornquist Astrand
3a031244bc Drop RCSID and HAVE_CONFIG_H 2009-08-05 13:37:37 +02:00
Love Hörnquist Åstrand
59e499f32f Prefer /dev/random on MacOS since it's always there and have good performance.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24900 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-22 17:20:07 +00:00
Love Hörnquist Åstrand
6937d41a02 remove trailing whitespace
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23815 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-09-13 09:21:03 +00:00
Love Hörnquist Åstrand
e172367898 switch to utf8 encoding of all files
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23814 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-09-13 08:53:55 +00:00
Love Hörnquist Åstrand
e55772d6cf close-on-exec
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23464 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-07-27 12:15:21 +00:00
Love Hörnquist Åstrand
28683c0e61 Drop const warnings.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23096 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-04-27 18:50:03 +00:00
Love Hörnquist Åstrand
2fad6bb2fa Document, implement RAND_set_rand_engine().
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23041 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-04-18 10:02:28 +00:00
Love Hörnquist Åstrand
dcadcad1c3 Can't call getpwuid(getuid()) at all since that causes recursive
lookups. Pointed out by Hai Zaar.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22199 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-12-07 13:43:25 +00:00
Love Hörnquist Åstrand
b0b726ed0f Default to fortuna due to weired /dev/*random that failes to deliver
random data for us in hi load situations.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21198 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-20 05:10:41 +00:00
Love Hörnquist Åstrand
7ba2b2006c rename des to hcrypto
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20466 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-04-20 08:29:05 +00:00