diff options
Diffstat (limited to 'ssh-add.c')
-rw-r--r-- | ssh-add.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssh-add.c,v 1.143 2019/10/31 21:19:56 djm Exp $ */ | 1 | /* $OpenBSD: ssh-add.c,v 1.144 2019/11/12 19:33:08 markus 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 |
@@ -81,6 +81,7 @@ static char *default_files[] = { | |||
81 | #endif | 81 | #endif |
82 | #endif /* WITH_OPENSSL */ | 82 | #endif /* WITH_OPENSSL */ |
83 | _PATH_SSH_CLIENT_ID_ED25519, | 83 | _PATH_SSH_CLIENT_ID_ED25519, |
84 | _PATH_SSH_CLIENT_ID_ED25519_SK, | ||
84 | _PATH_SSH_CLIENT_ID_XMSS, | 85 | _PATH_SSH_CLIENT_ID_XMSS, |
85 | NULL | 86 | NULL |
86 | }; | 87 | }; |
@@ -312,7 +313,7 @@ add_file(int agent_fd, const char *filename, int key_only, int qflag, | |||
312 | ssh_free_identitylist(idlist); | 313 | ssh_free_identitylist(idlist); |
313 | } | 314 | } |
314 | 315 | ||
315 | if (sshkey_type_plain(private->type) != KEY_ECDSA_SK) | 316 | if (!sshkey_is_sk(private)) |
316 | skprovider = NULL; /* Don't send constraint for other keys */ | 317 | skprovider = NULL; /* Don't send constraint for other keys */ |
317 | else if (skprovider == NULL) { | 318 | else if (skprovider == NULL) { |
318 | fprintf(stderr, "Cannot load security key %s without " | 319 | fprintf(stderr, "Cannot load security key %s without " |