Displaying 3 results from an estimated 3 matches for "ssh_kex".
Did you mean:
ssh_key
2006 May 15
2
[PATCH 10/12 bugfix: openssh-4.3p2: memory leak
...insertion(+)
diff -uprN openssh-4.3p2/sshconnect.c openssh-4.3p2-kylie/sshconnect.c
--- openssh-4.3p2/sshconnect.c 2005-12-13 02:29:03.000000000 -0600
+++ openssh-4.3p2-kylie/sshconnect.c 2006-05-04 10:07:57.000000000 -0500
@@ -937,6 +937,7 @@ ssh_login(Sensitive *sensitive, const ch
} else {
ssh_kex(host, hostaddr);
ssh_userauth1(local_user, server_user, host, sensitive);
+ xfree(local_user);
}
}
2010 Nov 28
2
[PATCH] Use canonical hostname for DNS SSHFP lookup
...st;
Kex *xxx_kex = NULL;
static int
verify_host_key_callback(Key *hostkey)
{
- if (verify_host_key(xxx_host, xxx_hostaddr, hostkey) == -1)
+ if (verify_host_key(xxx_host, xxx_hostaddr, hostkey, xxx_canohost) == -1)
fatal("Host key verification failed.");
return 0;
}
void
-ssh_kex2(char *host, struct sockaddr *hostaddr)
+ssh_kex2(char *host, struct sockaddr *hostaddr, const char *canohost)
{
Kex *kex;
xxx_host = host;
xxx_hostaddr = hostaddr;
+ xxx_canohost = canohost;
if (options.ciphers == (char *)-1) {
logit("No valid ciphers for protocol version 2 gi...
2018 Dec 10
2
[PATCH] cleanup of global variables server/client_version_string in sshconnect.c
...host_key) which could
be removed by placing it into the ssh/active_state structure, but which,
for now, could at least be made module-static.
Proposal: ssh-connect allocates the initial memory and creates values
and passes these as parameters to the relevant functions. It passes
them also to ssh_kex2 which makes a true copy. ssh-connect frees its
memory and the kex system finally frees its copy.
Along the way, fix the host leak also and make previous_host_key static
because both changes are trivial.
The patch is attached. It's from the portable version but applies to
the original...