summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog8
-rw-r--r--ssh-keysign.c6
2 files changed, 10 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 4aec5c5c9..33abee3b8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -6,6 +6,12 @@
6 - djm@cvs.openbsd.org 2006/04/01 05:50:29 6 - djm@cvs.openbsd.org 2006/04/01 05:50:29
7 [scp.c] 7 [scp.c]
8 xasprintification; ok deraadt@ 8 xasprintification; ok deraadt@
9 - djm@cvs.openbsd.org 2006/04/01 05:51:34
10 [atomicio.c]
11 ANSIfy; requested deraadt@
12 - dtucker@cvs.openbsd.org 2006/04/02 08:34:52
13 [ssh-keysign.c]
14 sessionid can be 32 bytes now too when sha256 kex is used; ok djm@
9 15
1020060421 1620060421
11 - (djm) [Makefile.in configure.ac session.c sshpty.c] 17 - (djm) [Makefile.in configure.ac session.c sshpty.c]
@@ -4517,4 +4523,4 @@
4517 - (djm) Trim deprecated options from INSTALL. Mention UsePAM 4523 - (djm) Trim deprecated options from INSTALL. Mention UsePAM
4518 - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu 4524 - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu
4519 4525
4520$Id: ChangeLog,v 1.4304 2006/04/23 02:04:46 djm Exp $ 4526$Id: ChangeLog,v 1.4305 2006/04/23 02:05:32 djm Exp $
diff --git a/ssh-keysign.c b/ssh-keysign.c
index 1f78c7a05..017af5307 100644
--- a/ssh-keysign.c
+++ b/ssh-keysign.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssh-keysign.c,v 1.22 2006/03/25 13:17:02 djm Exp $ */ 1/* $OpenBSD: ssh-keysign.c,v 1.23 2006/04/02 08:34:52 dtucker Exp $ */
2/* 2/*
3 * Copyright (c) 2002 Markus Friedl. All rights reserved. 3 * Copyright (c) 2002 Markus Friedl. All rights reserved.
4 * 4 *
@@ -68,9 +68,9 @@ valid_request(struct passwd *pw, char *host, Key **ret, u_char *data,
68 buffer_init(&b); 68 buffer_init(&b);
69 buffer_append(&b, data, datalen); 69 buffer_append(&b, data, datalen);
70 70
71 /* session id, currently limited to SHA1 (20 bytes) */ 71 /* session id, currently limited to SHA1 (20 bytes) or SHA256 (32) */
72 p = buffer_get_string(&b, &len); 72 p = buffer_get_string(&b, &len);
73 if (len != 20) 73 if (len != 20 && len != 32)
74 fail++; 74 fail++;
75 xfree(p); 75 xfree(p);
76 76