summaryrefslogtreecommitdiff
path: root/sshd.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2001-03-05 06:25:23 +0000
committerBen Lindstrom <mouring@eviladmin.org>2001-03-05 06:25:23 +0000
commit941ac82e1624e7d7bb7091785ca525889738420b (patch)
treeb00bbaaf325c1832b88b05bb0f0b4ef46b9969b9 /sshd.c
parent4030442d77f13f87ecd58d2e43d688b206abb0f4 (diff)
- markus@cvs.openbsd.org 2001/02/28 21:21:41
[sshd.c] generate a fake session id, too
Diffstat (limited to 'sshd.c')
-rw-r--r--sshd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sshd.c b/sshd.c
index 2669a935..2f4cfb6f 100644
--- a/sshd.c
+++ b/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>
@@ -1397,6 +1397,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();