summaryrefslogtreecommitdiff
path: root/sshkey.c
diff options
context:
space:
mode:
Diffstat (limited to 'sshkey.c')
-rw-r--r--sshkey.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sshkey.c b/sshkey.c
index ef90563b3..4d2048b6a 100644
--- a/sshkey.c
+++ b/sshkey.c
@@ -145,6 +145,7 @@ static const struct keytype keytypes[] = {
145# endif /* OPENSSL_HAS_NISTP521 */ 145# endif /* OPENSSL_HAS_NISTP521 */
146# endif /* OPENSSL_HAS_ECC */ 146# endif /* OPENSSL_HAS_ECC */
147#endif /* WITH_OPENSSL */ 147#endif /* WITH_OPENSSL */
148 { "null", "null", NULL, KEY_NULL, 0, 0, 0 },
148 { NULL, NULL, NULL, -1, -1, 0, 0 } 149 { NULL, NULL, NULL, -1, -1, 0, 0 }
149}; 150};
150 151
@@ -233,7 +234,7 @@ sshkey_alg_list(int certs_only, int plain_only, int include_sigonly, char sep)
233 const struct keytype *kt; 234 const struct keytype *kt;
234 235
235 for (kt = keytypes; kt->type != -1; kt++) { 236 for (kt = keytypes; kt->type != -1; kt++) {
236 if (kt->name == NULL) 237 if (kt->name == NULL || kt->type == KEY_NULL)
237 continue; 238 continue;
238 if (!include_sigonly && kt->sigonly) 239 if (!include_sigonly && kt->sigonly)
239 continue; 240 continue;