diff options
Diffstat (limited to 'sshkey.c')
-rw-r--r-- | sshkey.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -140,6 +140,7 @@ static const struct keytype keytypes[] = { | |||
140 | # endif /* OPENSSL_HAS_NISTP521 */ | 140 | # endif /* OPENSSL_HAS_NISTP521 */ |
141 | # endif /* OPENSSL_HAS_ECC */ | 141 | # endif /* OPENSSL_HAS_ECC */ |
142 | #endif /* WITH_OPENSSL */ | 142 | #endif /* WITH_OPENSSL */ |
143 | { "null", "null", NULL, KEY_NULL, 0, 0, 0 }, | ||
143 | { NULL, NULL, NULL, -1, -1, 0, 0 } | 144 | { NULL, NULL, NULL, -1, -1, 0, 0 } |
144 | }; | 145 | }; |
145 | 146 | ||
@@ -228,7 +229,7 @@ sshkey_alg_list(int certs_only, int plain_only, int include_sigonly, char sep) | |||
228 | const struct keytype *kt; | 229 | const struct keytype *kt; |
229 | 230 | ||
230 | for (kt = keytypes; kt->type != -1; kt++) { | 231 | for (kt = keytypes; kt->type != -1; kt++) { |
231 | if (kt->name == NULL) | 232 | if (kt->name == NULL || kt->type == KEY_NULL) |
232 | continue; | 233 | continue; |
233 | if (!include_sigonly && kt->sigonly) | 234 | if (!include_sigonly && kt->sigonly) |
234 | continue; | 235 | continue; |