summaryrefslogtreecommitdiff
path: root/ssh.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2004-06-22 12:56:01 +1000
committerDarren Tucker <dtucker@zip.com.au>2004-06-22 12:56:01 +1000
commit3f9fdc71219d498a996c4e4ca8330df7f598fb5d (patch)
tree902072deed2ca26a5b0b3fa5f3749783e0bd62e6 /ssh.c
parentb357afc0a03a4238a01acf5d9641ebda9f71d500 (diff)
- avsm@cvs.openbsd.org 2004/06/21 17:36:31
[auth-rsa.c auth2-gss.c auth2-pubkey.c authfile.c canohost.c channels.c cipher.c dns.c kex.c monitor.c monitor_fdpass.c monitor_wrap.c monitor_wrap.h nchan.c packet.c progressmeter.c scp.c sftp-server.c sftp.c ssh-gss.h ssh-keygen.c ssh.c sshconnect.c sshconnect1.c sshlogin.c sshpty.c] make ssh -Wshadow clean, no functional changes markus@ ok There are also some portable-specific -Wshadow warnings to be fixed in monitor.c and montior_wrap.c.
Diffstat (limited to 'ssh.c')
-rw-r--r--ssh.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/ssh.c b/ssh.c
index b9bd8c0d1..9e3f73555 100644
--- a/ssh.c
+++ b/ssh.c
@@ -40,7 +40,7 @@
40 */ 40 */
41 41
42#include "includes.h" 42#include "includes.h"
43RCSID("$OpenBSD: ssh.c,v 1.220 2004/06/20 17:36:59 djm Exp $"); 43RCSID("$OpenBSD: ssh.c,v 1.221 2004/06/21 17:36:31 avsm Exp $");
44 44
45#include <openssl/evp.h> 45#include <openssl/evp.h>
46#include <openssl/err.h> 46#include <openssl/err.h>
@@ -807,17 +807,17 @@ x11_get_proto(char **_proto, char **_data)
807 * for the local connection. 807 * for the local connection.
808 */ 808 */
809 if (!got_data) { 809 if (!got_data) {
810 u_int32_t rand = 0; 810 u_int32_t rnd = 0;
811 811
812 logit("Warning: No xauth data; " 812 logit("Warning: No xauth data; "
813 "using fake authentication data for X11 forwarding."); 813 "using fake authentication data for X11 forwarding.");
814 strlcpy(proto, SSH_X11_PROTO, sizeof proto); 814 strlcpy(proto, SSH_X11_PROTO, sizeof proto);
815 for (i = 0; i < 16; i++) { 815 for (i = 0; i < 16; i++) {
816 if (i % 4 == 0) 816 if (i % 4 == 0)
817 rand = arc4random(); 817 rnd = arc4random();
818 snprintf(data + 2 * i, sizeof data - 2 * i, "%02x", 818 snprintf(data + 2 * i, sizeof data - 2 * i, "%02x",
819 rand & 0xff); 819 rnd & 0xff);
820 rand >>= 8; 820 rnd >>= 8;
821 } 821 }
822 } 822 }
823} 823}