diff options
Diffstat (limited to 'authfile.c')
-rw-r--r-- | authfile.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/authfile.c b/authfile.c index 305e9473b..76a60d020 100644 --- a/authfile.c +++ b/authfile.c | |||
@@ -36,7 +36,7 @@ | |||
36 | */ | 36 | */ |
37 | 37 | ||
38 | #include "includes.h" | 38 | #include "includes.h" |
39 | RCSID("$OpenBSD: authfile.c,v 1.56 2004/05/11 19:01:43 deraadt Exp $"); | 39 | RCSID("$OpenBSD: authfile.c,v 1.57 2004/06/21 17:36:31 avsm Exp $"); |
40 | 40 | ||
41 | #include <openssl/err.h> | 41 | #include <openssl/err.h> |
42 | #include <openssl/evp.h> | 42 | #include <openssl/evp.h> |
@@ -72,7 +72,7 @@ key_save_private_rsa1(Key *key, const char *filename, const char *passphrase, | |||
72 | int fd, i, cipher_num; | 72 | int fd, i, cipher_num; |
73 | CipherContext ciphercontext; | 73 | CipherContext ciphercontext; |
74 | Cipher *cipher; | 74 | Cipher *cipher; |
75 | u_int32_t rand; | 75 | u_int32_t rnd; |
76 | 76 | ||
77 | /* | 77 | /* |
78 | * If the passphrase is empty, use SSH_CIPHER_NONE to ease converting | 78 | * If the passphrase is empty, use SSH_CIPHER_NONE to ease converting |
@@ -87,9 +87,9 @@ key_save_private_rsa1(Key *key, const char *filename, const char *passphrase, | |||
87 | buffer_init(&buffer); | 87 | buffer_init(&buffer); |
88 | 88 | ||
89 | /* Put checkbytes for checking passphrase validity. */ | 89 | /* Put checkbytes for checking passphrase validity. */ |
90 | rand = arc4random(); | 90 | rnd = arc4random(); |
91 | buf[0] = rand & 0xff; | 91 | buf[0] = rnd & 0xff; |
92 | buf[1] = (rand >> 8) & 0xff; | 92 | buf[1] = (rnd >> 8) & 0xff; |
93 | buf[2] = buf[0]; | 93 | buf[2] = buf[0]; |
94 | buf[3] = buf[1]; | 94 | buf[3] = buf[1]; |
95 | buffer_append(&buffer, buf, 4); | 95 | buffer_append(&buffer, buf, 4); |