summaryrefslogtreecommitdiff
path: root/authfd.c
diff options
context:
space:
mode:
authordjm@openbsd.org <djm@openbsd.org>2017-05-04 06:10:57 +0000
committerDamien Miller <djm@mindrot.org>2017-05-08 09:18:27 +1000
commit744bde79c3361e2153cb395a2ecdcee6c713585d (patch)
tree92be0f1ec014b6fb890ceca970afe367e7dc49e8 /authfd.c
parent0c378ff6d98d80bc465a4a6a787670fb9cc701ee (diff)
upstream commit
since a couple of people have asked, leave a comment explaining why we retain SSH v.1 support in the "delete all keys from agent" path. Upstream-ID: 4b42dcfa339813c15fe9248a2c1b7ed41c21bbb4
Diffstat (limited to 'authfd.c')
-rw-r--r--authfd.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/authfd.c b/authfd.c
index 915a6da48..ea664a167 100644
--- a/authfd.c
+++ b/authfd.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: authfd.c,v 1.101 2017/04/30 23:10:43 djm Exp $ */ 1/* $OpenBSD: authfd.c,v 1.102 2017/05/04 06:10:57 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
@@ -575,6 +575,10 @@ ssh_update_card(int sock, int add, const char *reader_id, const char *pin,
575/* 575/*
576 * Removes all identities from the agent. 576 * Removes all identities from the agent.
577 * This call is intended only for use by ssh-add(1) and like applications. 577 * This call is intended only for use by ssh-add(1) and like applications.
578 *
579 * This supports the SSH protocol 1 message to because, when clearing all
580 * keys from an agent, we generally want to clear both protocol v1 and v2
581 * keys.
578 */ 582 */
579int 583int
580ssh_remove_all_identities(int sock, int version) 584ssh_remove_all_identities(int sock, int version)