mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-04 12:20:42 +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;
|
||||
}
|
||||
|
||||
/* 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);
|
||||
|
||||
Reference in New Issue
Block a user