diff options
Diffstat (limited to 'sshkey.c')
-rw-r--r-- | sshkey.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -135,6 +135,7 @@ static const struct keytype keytypes[] = { | |||
135 | # endif /* OPENSSL_HAS_NISTP521 */ | 135 | # endif /* OPENSSL_HAS_NISTP521 */ |
136 | # endif /* OPENSSL_HAS_ECC */ | 136 | # endif /* OPENSSL_HAS_ECC */ |
137 | #endif /* WITH_OPENSSL */ | 137 | #endif /* WITH_OPENSSL */ |
138 | { "null", "null", NULL, KEY_NULL, 0, 0, 0 }, | ||
138 | { NULL, NULL, NULL, -1, -1, 0, 0 } | 139 | { NULL, NULL, NULL, -1, -1, 0, 0 } |
139 | }; | 140 | }; |
140 | 141 | ||
@@ -223,7 +224,7 @@ sshkey_alg_list(int certs_only, int plain_only, int include_sigonly, char sep) | |||
223 | const struct keytype *kt; | 224 | const struct keytype *kt; |
224 | 225 | ||
225 | for (kt = keytypes; kt->type != -1; kt++) { | 226 | for (kt = keytypes; kt->type != -1; kt++) { |
226 | if (kt->name == NULL) | 227 | if (kt->name == NULL || kt->type == KEY_NULL) |
227 | continue; | 228 | continue; |
228 | if (!include_sigonly && kt->sigonly) | 229 | if (!include_sigonly && kt->sigonly) |
229 | continue; | 230 | continue; |