diff options
author | Colin Watson <cjwatson@debian.org> | 2010-01-25 12:24:16 +0000 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2010-01-25 12:24:16 +0000 |
commit | 02d776600121afc31658f3b857ab9d41c7cad5ca (patch) | |
tree | 46d879a915140a1383efdd7bd08b66c064795824 /authfd.c | |
parent | 59247ecde39f2d826a94ab07f6095ca1f6644e88 (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.c | 6 |
1 files changed, 0 insertions, 6 deletions
@@ -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 | ||
548 | int | ||
549 | ssh_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. |