search for: prng_read_commands

Displaying 3 results from an estimated 3 matches for "prng_read_commands".

2000 Aug 25
1
[patch] configurable ssh_prng_cmds
...823.new/entropy.c Fri Aug 25 14:44:52 2000 @@ -67,6 +67,8 @@ # define RUSAGE_CHILDREN 0 #endif +char *ssh_prng_command_file = NULL; + #if defined(EGD_SOCKET) || defined(RANDOM_POOL) #ifdef EGD_SOCKET @@ -810,7 +812,7 @@ original_uid = getuid(); /* Read in collection commands */ - if (!prng_read_commands(SSH_PRNG_COMMAND_FILE)) + if (!prng_read_commands(ssh_prng_command_file)) fatal("PRNG initialisation failed -- exiting."); /* Set ourselves up to save a seed upon exit */ diff -ur openssh-SNAP-20000823.orig/entropy.h openssh-SNAP-20000823.new/entropy.h --- openssh-SNAP-20000823.ori...
2006 May 15
0
[PATCH 12/12] bug fix: openssh 4.3p2 ssh-rand-helper bugs
...uot;%.512s/%s", pw->pw_dir, _PATH_SSH_USER_DIR); - mkdir(filename, 0700); + if (mkdir(filename, 0700) < 0) + fatal("mkdir: %s", strerror(errno)); snprintf(filename, sizeof(filename), "%.512s/%s", pw->pw_dir, SSH_PRNG_SEED_FILE); @@ -774,6 +775,7 @@ prng_read_commands(char *cmdfilename) debug("Loaded %d entropy commands from %.100s", cur_cmd, cmdfilename); + fclose(f); return cur_cmd < MIN_ENTROPY_SOURCES ? -1 : 0; }
2006 May 04
2
xmalloc(foo*bar) -> xcalloc(foo, bar) for Portable
...====================================== RCS file: /usr/local/src/security/openssh/cvs/openssh_cvs/ssh-rand-helper.c,v retrieving revision 1.29 diff -u -p -r1.29 ssh-rand-helper.c --- ssh-rand-helper.c 26 Mar 2006 03:22:48 -0000 1.29 +++ ssh-rand-helper.c 4 May 2006 02:01:13 -0000 @@ -674,7 +674,7 @@ prng_read_commands(char *cmdfilename) } num_cmds = 64; - entcmd = xmalloc(num_cmds * sizeof(entropy_cmd_t)); + entcmd = xcalloc(num_cmds, sizeof(entropy_cmd_t)); memset(entcmd, '\0', num_cmds * sizeof(entropy_cmd_t)); /* Read in file */ Index: sshd.c ===============================================...