knownhosts: Ignore OpenSSH markers related to certificates

Signed-off-by: Jakub Jelen <jjelen@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
Jakub Jelen
2019-02-07 16:05:32 +01:00
committed by Andreas Schneider
parent 7cc159d720
commit 8152c6aba4

View File

@@ -233,6 +233,12 @@ static int ssh_known_hosts_read_entries(const char *match,
continue;
}
/* Skip lines starting with markers (@cert-authority, @revoked):
* we do not completely support them anyway */
if (p[0] == '@') {
continue;
}
rc = ssh_known_hosts_parse_line(match,
line,
&entry);