aboutsummaryrefslogtreecommitdiffstats
path: root/agent/findkey.c
diff options
context:
space:
mode:
Diffstat (limited to 'agent/findkey.c')
-rw-r--r--agent/findkey.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/agent/findkey.c b/agent/findkey.c
index b0a941078..e0db5095c 100644
--- a/agent/findkey.c
+++ b/agent/findkey.c
@@ -1458,8 +1458,7 @@ public_key_from_file (ctrl_t ctrl, const unsigned char *grip,
if (for_ssh)
{
- /* Use-for-ssh: yes */
- /* Token: <SERIALNO> <IDSTR> */
+ /* Use-for-ssh: yes */
const char *p;
int is_ssh = 0;
@@ -1470,19 +1469,6 @@ public_key_from_file (ctrl_t ctrl, const unsigned char *grip,
&& !strcmp (p, "yes"))
is_ssh = 1;
- if ((p = nvc_get_string (keymeta, "Token:")))
- {
- while (*p && !spacep (p))
- p++;
-
- if (*p)
- {
- p++;
- if (!strcmp (p, "OPENPGP.3"))
- is_ssh = 1;
- }
- }
-
nvc_release (keymeta);
keymeta = NULL;