diff options
author | Chad Loder <cloder@cvs.openbsd.org> | 2005-04-08 22:32:11 +0000 |
---|---|---|
committer | Chad Loder <cloder@cvs.openbsd.org> | 2005-04-08 22:32:11 +0000 |
commit | cb04993a6a5ad3e448426e96a948cdef66528031 (patch) | |
tree | f7ef29458cec34b4c4dc5b6aa0a0720a18846ad5 /sbin/isakmpd/init.c | |
parent | f6e2c42a9faec3e926fc2d60e8cdc93729f7a211 (diff) |
Make deterministic randomness (only ever used for testing) a compile-time
option. Reduces chances of somehow setting regrand when it's not supposed
to be set. Remove "-r" option from man page. Also xref certpatch(8) while
we are in there. And remove some include sysdep.h where it is no longer
needed.
OK hshoexer
Diffstat (limited to 'sbin/isakmpd/init.c')
-rw-r--r-- | sbin/isakmpd/init.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/isakmpd/init.c b/sbin/isakmpd/init.c index 07e6e21550b..dbacdcc4d86 100644 --- a/sbin/isakmpd/init.c +++ b/sbin/isakmpd/init.c @@ -1,4 +1,4 @@ -/* $OpenBSD: init.c,v 1.35 2005/04/08 17:15:01 deraadt Exp $ */ +/* $OpenBSD: init.c,v 1.36 2005/04/08 22:32:10 cloder Exp $ */ /* $EOM: init.c,v 1.25 2000/03/30 14:27:24 ho Exp $ */ /* @@ -35,8 +35,6 @@ #include <stdlib.h> -#include "sysdep.h" - #include "app.h" #include "cert.h" #include "conf.h" @@ -114,9 +112,11 @@ reinit(void) * XXX This means we discard exchange->last_msg, is this really ok? */ +#if defined(INSECURE_RAND) /* Reinitialize PRNG if we are in deterministic mode. */ if (regrand) srandom(seed); +#endif /* Reread config file. */ conf_reinit(); |