mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-05 21:42:47 -05:00
Pass port through to userauth.
I'm going to want to use it in an upcoming commit, because together with 'savedhost', it forms the identification of an SSH server (at least as far as the host key cache is concerned, and therefore it's appropriate for other uses too). We were already passing the hostname through for use in user-facing prompts (not to mention the FQDN version for use in GSSAPI).
This commit is contained in:
@ -253,7 +253,8 @@ static void ssh_got_ssh_version(struct ssh_version_receiver *rcv,
|
||||
char *username = get_remote_username(ssh->conf);
|
||||
|
||||
userauth_layer = ssh2_userauth_new(
|
||||
connection_layer, ssh->savedhost, ssh->fullhostname,
|
||||
connection_layer, ssh->savedhost, ssh->savedport,
|
||||
ssh->fullhostname,
|
||||
conf_get_filename(ssh->conf, CONF_keyfile),
|
||||
conf_get_filename(ssh->conf, CONF_detached_cert),
|
||||
conf_get_bool(ssh->conf, CONF_ssh_show_banner),
|
||||
|
Reference in New Issue
Block a user