summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2008-06-30 00:05:48 +1000
committerDamien Miller <djm@mindrot.org>2008-06-30 00:05:48 +1000
commit471db5c2eb4c25b9e7c9257e811b07067ef731a4 (patch)
tree4f265ad36a0202a9b54c117c3a3a253c1a86f6cf
parent1cfadabc0e84551a3caa87c24cba6a0f2db43945 (diff)
- djm@cvs.openbsd.org 2008/06/28 14:05:15
[ssh-agent.c] reset global compat flag after processing a protocol 2 signature request with the legacy DSA encoding flag set; ok markus
-rw-r--r--ChangeLog6
-rw-r--r--ssh-agent.c5
2 files changed, 9 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index ffb2fe587..aaf9cefdb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -38,6 +38,10 @@
38 [ssh-agent.c] 38 [ssh-agent.c]
39 refuse to add a key that has unknown constraints specified; 39 refuse to add a key that has unknown constraints specified;
40 ok markus 40 ok markus
41 - djm@cvs.openbsd.org 2008/06/28 14:05:15
42 [ssh-agent.c]
43 reset global compat flag after processing a protocol 2 signature
44 request with the legacy DSA encoding flag set; ok markus
41 45
4220080628 4620080628
43 - (djm) [RFC.nroff contrib/cygwin/Makefile contrib/suse/openssh.spec] 47 - (djm) [RFC.nroff contrib/cygwin/Makefile contrib/suse/openssh.spec]
@@ -4458,4 +4462,4 @@
4458 OpenServer 6 and add osr5bigcrypt support so when someone migrates 4462 OpenServer 6 and add osr5bigcrypt support so when someone migrates
4459 passwords between UnixWare and OpenServer they will still work. OK dtucker@ 4463 passwords between UnixWare and OpenServer they will still work. OK dtucker@
4460 4464
4461$Id: ChangeLog,v 1.5032 2008/06/29 14:05:21 djm Exp $ 4465$Id: ChangeLog,v 1.5033 2008/06/29 14:05:48 djm Exp $
diff --git a/ssh-agent.c b/ssh-agent.c
index 8f9e2e8ce..b1c65fab6 100644
--- a/ssh-agent.c
+++ b/ssh-agent.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssh-agent.c,v 1.158 2008/06/28 13:58:23 djm Exp $ */ 1/* $OpenBSD: ssh-agent.c,v 1.159 2008/06/28 14:05:15 djm Exp $ */
2/* 2/*
3 * Author: Tatu Ylonen <ylo@cs.hut.fi> 3 * Author: Tatu Ylonen <ylo@cs.hut.fi>
4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -312,6 +312,7 @@ process_sign_request2(SocketEntry *e)
312 u_char *blob, *data, *signature = NULL; 312 u_char *blob, *data, *signature = NULL;
313 u_int blen, dlen, slen = 0; 313 u_int blen, dlen, slen = 0;
314 extern int datafellows; 314 extern int datafellows;
315 int odatafellows;
315 int ok = -1, flags; 316 int ok = -1, flags;
316 Buffer msg; 317 Buffer msg;
317 Key *key; 318 Key *key;
@@ -322,6 +323,7 @@ process_sign_request2(SocketEntry *e)
322 data = buffer_get_string(&e->request, &dlen); 323 data = buffer_get_string(&e->request, &dlen);
323 324
324 flags = buffer_get_int(&e->request); 325 flags = buffer_get_int(&e->request);
326 odatafellows = datafellows;
325 if (flags & SSH_AGENT_OLD_SIGNATURE) 327 if (flags & SSH_AGENT_OLD_SIGNATURE)
326 datafellows = SSH_BUG_SIGBLOB; 328 datafellows = SSH_BUG_SIGBLOB;
327 329
@@ -347,6 +349,7 @@ process_sign_request2(SocketEntry *e)
347 xfree(blob); 349 xfree(blob);
348 if (signature != NULL) 350 if (signature != NULL)
349 xfree(signature); 351 xfree(signature);
352 datafellows = odatafellows;
350} 353}
351 354
352/* shared */ 355/* shared */