Skip to content

Commit 69965ae

Browse files
committed
upstream: When loading FIDO2 resident keys, set the comment to the
FIDO application string. This matches the behaviour of ssh-keygen -K From Arian van Putten via GHPR608 OpenBSD-Commit-ID: 3fda54b44ed6a8a6f94cd3e39e69c1e672095712
1 parent 2238c48 commit 69965ae

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ssh-add.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $OpenBSD: ssh-add.c,v 1.183 2025/11/13 10:35:14 dtucker Exp $ */
1+
/* $OpenBSD: ssh-add.c,v 1.184 2025/11/24 23:43:10 djm Exp $ */
22
/*
33
* Author: Tatu Ylonen <ylo@cs.hut.fi>
44
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -601,8 +601,8 @@ load_resident_keys(int agent_fd, const char *skprovider, int qflag,
601601
if ((fp = sshkey_fingerprint(key,
602602
fingerprint_hash, SSH_FP_DEFAULT)) == NULL)
603603
fatal_f("sshkey_fingerprint failed");
604-
if ((r = ssh_add_identity_constrained(agent_fd, key, "",
605-
lifetime, confirm, skprovider,
604+
if ((r = ssh_add_identity_constrained(agent_fd, key,
605+
key->sk_application, lifetime, confirm, skprovider,
606606
dest_constraints, ndest_constraints)) != 0) {
607607
error("Unable to add key %s %s",
608608
sshkey_type(key), fp);

0 commit comments

Comments
 (0)