summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--entropy.c6
-rw-r--r--ssh-rand-helper.c8
3 files changed, 9 insertions, 8 deletions
diff --git a/ChangeLog b/ChangeLog
index 832b1609b..e7a7c6616 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -15,6 +15,7 @@
15 add a ConnectTimeout option to ssh, based on patch from 15 add a ConnectTimeout option to ssh, based on patch from
16 Jean-Charles Longuet (jclonguet at free.fr); portable #207 ok markus@ 16 Jean-Charles Longuet (jclonguet at free.fr); portable #207 ok markus@
17 - (djm) Add warning for UsePAM when built without PAM support 17 - (djm) Add warning for UsePAM when built without PAM support
18 - (djm) A few type mismatch fixes from Bug #565
18 19
1920030515 2020030515
20 - (djm) OpenBSD CVS Sync 21 - (djm) OpenBSD CVS Sync
@@ -1546,4 +1547,4 @@
1546 save auth method before monitor_reset_key_state(); bugzilla bug #284; 1547 save auth method before monitor_reset_key_state(); bugzilla bug #284;
1547 ok provos@ 1548 ok provos@
1548 1549
1549$Id: ChangeLog,v 1.2728 2003/05/16 01:42:35 djm Exp $ 1550$Id: ChangeLog,v 1.2729 2003/05/16 05:51:44 djm Exp $
diff --git a/entropy.c b/entropy.c
index dcc8689c9..a16ea10b3 100644
--- a/entropy.c
+++ b/entropy.c
@@ -45,7 +45,7 @@
45 * XXX: we should tell the child how many bytes we need. 45 * XXX: we should tell the child how many bytes we need.
46 */ 46 */
47 47
48RCSID("$Id: entropy.c,v 1.44 2002/06/09 19:41:48 mouring Exp $"); 48RCSID("$Id: entropy.c,v 1.45 2003/05/16 05:51:45 djm Exp $");
49 49
50#ifndef OPENSSL_PRNG_ONLY 50#ifndef OPENSSL_PRNG_ONLY
51#define RANDOM_SEED_SIZE 48 51#define RANDOM_SEED_SIZE 48
@@ -89,8 +89,8 @@ seed_rng(void)
89 if (original_uid != original_euid && 89 if (original_uid != original_euid &&
90 ( seteuid(getuid()) == -1 || 90 ( seteuid(getuid()) == -1 ||
91 setuid(original_uid) == -1) ) { 91 setuid(original_uid) == -1) ) {
92 fprintf(stderr, "(rand child) setuid(%d): %s\n", 92 fprintf(stderr, "(rand child) setuid(%li): %s\n",
93 original_uid, strerror(errno)); 93 (long int)original_uid, strerror(errno));
94 _exit(1); 94 _exit(1);
95 } 95 }
96 96
diff --git a/ssh-rand-helper.c b/ssh-rand-helper.c
index 68b77b208..a233b1e9c 100644
--- a/ssh-rand-helper.c
+++ b/ssh-rand-helper.c
@@ -39,7 +39,7 @@
39#include "pathnames.h" 39#include "pathnames.h"
40#include "log.h" 40#include "log.h"
41 41
42RCSID("$Id: ssh-rand-helper.c,v 1.10 2003/03/17 05:13:53 djm Exp $"); 42RCSID("$Id: ssh-rand-helper.c,v 1.11 2003/05/16 05:51:45 djm Exp $");
43 43
44/* Number of bytes we write out */ 44/* Number of bytes we write out */
45#define OUTPUT_SEED_SIZE 48 45#define OUTPUT_SEED_SIZE 48
@@ -532,7 +532,7 @@ prng_check_seedfile(char *filename)
532 /* mode 0600, owned by root or the current user? */ 532 /* mode 0600, owned by root or the current user? */
533 if (((st.st_mode & 0177) != 0) || !(st.st_uid == getuid())) { 533 if (((st.st_mode & 0177) != 0) || !(st.st_uid == getuid())) {
534 debug("WARNING: PRNG seedfile %.100s must be mode 0600, " 534 debug("WARNING: PRNG seedfile %.100s must be mode 0600, "
535 "owned by uid %d", filename, getuid()); 535 "owned by uid %li", filename, (long int)getuid());
536 return 0; 536 return 0;
537 } 537 }
538 538
@@ -550,7 +550,7 @@ prng_write_seedfile(void)
550 pw = getpwuid(getuid()); 550 pw = getpwuid(getuid());
551 if (pw == NULL) 551 if (pw == NULL)
552 fatal("Couldn't get password entry for current user " 552 fatal("Couldn't get password entry for current user "
553 "(%i): %s", getuid(), strerror(errno)); 553 "(%li): %s", (long int)getuid(), strerror(errno));
554 554
555 /* Try to ensure that the parent directory is there */ 555 /* Try to ensure that the parent directory is there */
556 snprintf(filename, sizeof(filename), "%.512s/%s", pw->pw_dir, 556 snprintf(filename, sizeof(filename), "%.512s/%s", pw->pw_dir,
@@ -589,7 +589,7 @@ prng_read_seedfile(void)
589 pw = getpwuid(getuid()); 589 pw = getpwuid(getuid());
590 if (pw == NULL) 590 if (pw == NULL)
591 fatal("Couldn't get password entry for current user " 591 fatal("Couldn't get password entry for current user "
592 "(%i): %s", getuid(), strerror(errno)); 592 "(%li): %s", (long int)getuid(), strerror(errno));
593 593
594 snprintf(filename, sizeof(filename), "%.512s/%s", pw->pw_dir, 594 snprintf(filename, sizeof(filename), "%.512s/%s", pw->pw_dir,
595 SSH_PRNG_SEED_FILE); 595 SSH_PRNG_SEED_FILE);