diff options
Diffstat (limited to 'sshkey.c')
-rw-r--r-- | sshkey.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -114,6 +114,7 @@ static const struct keytype keytypes[] = { | |||
114 | # endif /* OPENSSL_HAS_NISTP521 */ | 114 | # endif /* OPENSSL_HAS_NISTP521 */ |
115 | # endif /* OPENSSL_HAS_ECC */ | 115 | # endif /* OPENSSL_HAS_ECC */ |
116 | #endif /* WITH_OPENSSL */ | 116 | #endif /* WITH_OPENSSL */ |
117 | { "null", "null", KEY_NULL, 0, 0, 0 }, | ||
117 | { NULL, NULL, -1, -1, 0, 0 } | 118 | { NULL, NULL, -1, -1, 0, 0 } |
118 | }; | 119 | }; |
119 | 120 | ||
@@ -202,7 +203,7 @@ sshkey_alg_list(int certs_only, int plain_only, char sep) | |||
202 | const struct keytype *kt; | 203 | const struct keytype *kt; |
203 | 204 | ||
204 | for (kt = keytypes; kt->type != -1; kt++) { | 205 | for (kt = keytypes; kt->type != -1; kt++) { |
205 | if (kt->name == NULL || kt->sigonly) | 206 | if (kt->name == NULL || kt->sigonly || kt->type == KEY_NULL) |
206 | continue; | 207 | continue; |
207 | if ((certs_only && !kt->cert) || (plain_only && kt->cert)) | 208 | if ((certs_only && !kt->cert) || (plain_only && kt->cert)) |
208 | continue; | 209 | continue; |