diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 2001-02-28 21:21:42 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 2001-02-28 21:21:42 +0000 |
commit | db0d1191926a50d3b94b2e68df57caff3ef75dd8 (patch) | |
tree | e2040d0dd935b553c6b9a5ba8dacaa8330f6e06d /usr.bin/ssh/sshd.c | |
parent | 4655755794d81ef91b63d356a215c65369cea9d3 (diff) |
generate a fake session id, too
Diffstat (limited to 'usr.bin/ssh/sshd.c')
-rw-r--r-- | usr.bin/ssh/sshd.c | 4 |
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(); |