mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-11 10:40:27 +09:00
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:
committed by
Andreas Schneider
parent
7cc159d720
commit
8152c6aba4
@@ -233,6 +233,12 @@ static int ssh_known_hosts_read_entries(const char *match,
|
|||||||
continue;
|
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,
|
rc = ssh_known_hosts_parse_line(match,
|
||||||
line,
|
line,
|
||||||
&entry);
|
&entry);
|
||||||
|
|||||||
Reference in New Issue
Block a user