summaryrefslogtreecommitdiff
path: root/sshconnect1.c
diff options
context:
space:
mode:
Diffstat (limited to 'sshconnect1.c')
-rw-r--r--sshconnect1.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sshconnect1.c b/sshconnect1.c
index ae33ab39d..61fecab14 100644
--- a/sshconnect1.c
+++ b/sshconnect1.c
@@ -13,7 +13,7 @@
13 */ 13 */
14 14
15#include "includes.h" 15#include "includes.h"
16RCSID("$OpenBSD: sshconnect1.c,v 1.58 2004/05/09 01:19:28 djm Exp $"); 16RCSID("$OpenBSD: sshconnect1.c,v 1.59 2004/06/21 17:36:31 avsm Exp $");
17 17
18#include <openssl/bn.h> 18#include <openssl/bn.h>
19#include <openssl/md5.h> 19#include <openssl/md5.h>
@@ -476,7 +476,7 @@ ssh_kex(char *host, struct sockaddr *hostaddr)
476 u_char cookie[8]; 476 u_char cookie[8];
477 u_int supported_ciphers; 477 u_int supported_ciphers;
478 u_int server_flags, client_flags; 478 u_int server_flags, client_flags;
479 u_int32_t rand = 0; 479 u_int32_t rnd = 0;
480 480
481 debug("Waiting for server public key."); 481 debug("Waiting for server public key.");
482 482
@@ -540,9 +540,9 @@ ssh_kex(char *host, struct sockaddr *hostaddr)
540 */ 540 */
541 for (i = 0; i < 32; i++) { 541 for (i = 0; i < 32; i++) {
542 if (i % 4 == 0) 542 if (i % 4 == 0)
543 rand = arc4random(); 543 rnd = arc4random();
544 session_key[i] = rand & 0xff; 544 session_key[i] = rnd & 0xff;
545 rand >>= 8; 545 rnd >>= 8;
546 } 546 }
547 547
548 /* 548 /*