Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

methodiSSHOptionList.SelectAsClient

function SelectAsClient(const aServerPrefs : string; out aCorrectGuess: Boolean) : iCustomOption;
Client-side name-list negotiation: given the server's ordered preference list (aServerPrefs, from the peer KEXINIT), returns the option this side selects - the first locally-enabled name the server also offers, following the client's own preference order (RFC 4253). aCorrectGuess is TRUE only when both sides' first choice coincide, i.e. the client's optimistic "first_kex_packet_follows" guess was right. Called by the SSH transport, not by application code.