SshKnownHosts.check

SshKnownHostsResult check(string host, ushort port, const(ubyte)[] keyBlob, string[] aliases = null) const @safe

Looks up a presented key for a target host.

The candidate strings are the plain host name for the default port or the bracketed [host]:port form otherwise, plus any caller-supplied aliases (used verbatim, lowercased).

Parameters

hostHost name the session connects to.
portPort the session connects to.
keyBlobPresented host key blob.
aliasesAdditional names the same server is known by.

Returns

The strongest outcome: revoked beats trusted and changed,

trusted and changed beat certAuthority, which beats noMatch.