negotiateKexName

fnstring negotiateKexName(scope const SshKexInit client, scope const SshKexInit server) @safe

Negotiates only the key-exchange name from both KEXINITs.

Parameters

clientOur KEXINIT.
serverThe server's KEXINIT.

Returns

The first client preference the server also lists (indicator

names skipped), or an empty string when nothing matches.