summaryrefslogtreecommitdiff
path: root/authfd.c
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2010-01-25 12:24:16 +0000
committerColin Watson <cjwatson@debian.org>2010-01-25 12:24:16 +0000
commit02d776600121afc31658f3b857ab9d41c7cad5ca (patch)
tree46d879a915140a1383efdd7bd08b66c064795824 /authfd.c
parent59247ecde39f2d826a94ab07f6095ca1f6644e88 (diff)
* Backport from upstream:
- Do not fall back to adding keys without contraints (ssh-add -c / -t ...) when the agent refuses the constrained add request. This was a useful migration measure back in 2002 when constraints were new, but just adds risk now (LP: #209447).
Diffstat (limited to 'authfd.c')
-rw-r--r--authfd.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/authfd.c b/authfd.c
index 61faad123..5dba87d26 100644
--- a/authfd.c
+++ b/authfd.c
@@ -545,12 +545,6 @@ ssh_add_identity_constrained(AuthenticationConnection *auth, Key *key,
545 return decode_reply(type); 545 return decode_reply(type);
546} 546}
547 547
548int
549ssh_add_identity(AuthenticationConnection *auth, Key *key, const char *comment)
550{
551 return ssh_add_identity_constrained(auth, key, comment, 0, 0);
552}
553
554/* 548/*
555 * Removes an identity from the authentication server. This call is not 549 * Removes an identity from the authentication server. This call is not
556 * meant to be used by normal applications. 550 * meant to be used by normal applications.