summaryrefslogtreecommitdiff
path: root/usr.bin/ssh
diff options
context:
space:
mode:
authorMarkus Friedl <markus@cvs.openbsd.org>2001-02-28 21:21:42 +0000
committerMarkus Friedl <markus@cvs.openbsd.org>2001-02-28 21:21:42 +0000
commitdb0d1191926a50d3b94b2e68df57caff3ef75dd8 (patch)
treee2040d0dd935b553c6b9a5ba8dacaa8330f6e06d /usr.bin/ssh
parent4655755794d81ef91b63d356a215c65369cea9d3 (diff)
generate a fake session id, too
Diffstat (limited to 'usr.bin/ssh')
-rw-r--r--usr.bin/ssh/sshd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/ssh/sshd.c b/usr.bin/ssh/sshd.c
index 524081ee183..9a18ea8009f 100644
--- a/usr.bin/ssh/sshd.c
+++ b/usr.bin/ssh/sshd.c
@@ -40,7 +40,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: sshd.c,v 1.169 2001/02/23 18:15:13 markus Exp $");
+RCSID("$OpenBSD: sshd.c,v 1.170 2001/02/28 21:21:41 markus Exp $");
#include <openssl/dh.h>
#include <openssl/bn.h>
@@ -1373,6 +1373,8 @@ do_ssh1_kex(void)
MD5_Final(session_key + 16, &md);
memset(buf, 0, bytes);
xfree(buf);
+ for (i = 0; i < 16; i++)
+ session_id[i] = session_key[i] ^ session_key[i + 16];
}
/* Destroy the private and public keys. They will no longer be needed. */
destroy_sensitive_data();