-/* $OpenBSD: proc.c,v 1.12 2014/04/14 07:18:05 blambert Exp $ */
+/* $OpenBSD: proc.c,v 1.13 2014/04/18 21:29:20 tedu Exp $ */
/*
* Copyright (c) 2010-2013 Reyk Floeter <reyk@openbsd.org>
pid_t pid;
struct passwd *pw;
const char *root;
- u_int32_t seed[256];
switch (pid = fork()) {
case -1:
proc_config(ps, procs, nproc);
- arc4random_buf(seed, sizeof(seed));
- RAND_seed(seed, sizeof(seed));
- explicit_bzero(seed, sizeof(seed));
-
if (p->p_id == PROC_CONTROL) {
TAILQ_INIT(&ctl_conns);
if (control_listen(&ps->ps_csock) == -1)
-/* $OpenBSD: ikeca.c,v 1.25 2013/01/08 10:38:19 reyk Exp $ */
+/* $OpenBSD: ikeca.c,v 1.26 2014/04/18 21:29:20 tedu Exp $ */
/*
* Copyright (c) 2010 Jonathan Gray <jsg@openbsd.org>
struct stat st;
struct ca *ca;
char path[PATH_MAX];
- u_int32_t rnd[256];
if (stat(PATH_OPENSSL, &st) == -1)
err(1, "openssl binary not available");
if (create && stat(ca->passfile, &st) == -1 && errno == ENOENT)
ca_newpass(ca->passfile, pass);
- arc4random_buf(rnd, sizeof(rnd));
- RAND_seed(rnd, sizeof(rnd));
-
return (ca);
}
-/* $OpenBSD: proc.c,v 1.9 2014/04/18 12:02:37 reyk Exp $ */
+/* $OpenBSD: proc.c,v 1.10 2014/04/18 21:29:20 tedu Exp $ */
/*
* Copyright (c) 2010 - 2014 Reyk Floeter <reyk@openbsd.org>
pid_t pid;
struct passwd *pw;
const char *root;
- u_int32_t seed[256];
u_int n;
if (ps->ps_noaction)
proc_config(ps, procs, nproc);
- arc4random_buf(seed, sizeof(seed));
- RAND_seed(seed, sizeof(seed));
- explicit_bzero(seed, sizeof(seed));
-
if (p->p_id == PROC_CONTROL && ps->ps_instance == 0) {
TAILQ_INIT(&ctl_conns);
if (control_listen(&ps->ps_csock) == -1)
-/* $OpenBSD: proc.c,v 1.4 2014/04/14 07:18:05 blambert Exp $ */
+/* $OpenBSD: proc.c,v 1.5 2014/04/18 21:29:20 tedu Exp $ */
/*
* Copyright (c) 2010-2013 Reyk Floeter <reyk@openbsd.org>
pid_t pid;
struct passwd *pw;
const char *root;
- u_int32_t seed[256];
struct control_sock *rcs;
switch (pid = fork()) {
proc_config(ps, procs, nproc);
- arc4random_buf(seed, sizeof(seed));
- RAND_seed(seed, sizeof(seed));
- explicit_bzero(seed, sizeof(seed));
-
if (p->p_id == PROC_CONTROL) {
TAILQ_INIT(&ctl_conns);
if (control_listen(&ps->ps_csock) == -1)