summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/ssh-agent.c
diff options
context:
space:
mode:
authordjm <djm@openbsd.org>2015-03-04 21:12:59 +0000
committerdjm <djm@openbsd.org>2015-03-04 21:12:59 +0000
commitd6ed155ec1a57c4c64e77fba991dff8b4636c7df (patch)
treeda3e6799ec570971b3e19c291fe6959ba4d780a8 /usr.bin/ssh/ssh-agent.c
parentcrank; ok markus, deraadt (diff)
downloadwireguard-openbsd-d6ed155ec1a57c4c64e77fba991dff8b4636c7df.tar.xz
wireguard-openbsd-d6ed155ec1a57c4c64e77fba991dff8b4636c7df.zip
make ssh-add -D work with !SSH1 agent
Diffstat (limited to 'usr.bin/ssh/ssh-agent.c')
-rw-r--r--usr.bin/ssh/ssh-agent.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/ssh/ssh-agent.c b/usr.bin/ssh/ssh-agent.c
index efc4cf01637..cf6e18c6d28 100644
--- a/usr.bin/ssh/ssh-agent.c
+++ b/usr.bin/ssh/ssh-agent.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssh-agent.c,v 1.198 2015/03/03 21:21:13 djm Exp $ */
+/* $OpenBSD: ssh-agent.c,v 1.199 2015/03/04 21:12:59 djm Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -851,10 +851,10 @@ process_message(SocketEntry *e)
case SSH_AGENTC_REMOVE_RSA_IDENTITY:
process_remove_identity(e, 1);
break;
+#endif
case SSH_AGENTC_REMOVE_ALL_RSA_IDENTITIES:
- process_remove_all_identities(e, 1);
+ process_remove_all_identities(e, 1); /* safe for !WITH_SSH1 */
break;
-#endif
/* ssh2 */
case SSH2_AGENTC_SIGN_REQUEST:
process_sign_request2(e);