Displaying 3 results from an estimated 3 matches for "get_hostfile_hostname_ipaddr".
2012 Nov 06
0
Semantics of known_hosts file
...ls with
OpenSSH's known_hosts file when non-standard ports are used. Hence, I
want to make sure that I correctly understand OpenSSH's behaviour. If
this is not a topic for this list, please point me to a more appropriate
list.
As far as I can gather from readin sshd(8) and the source code
(get_hostfile_hostname_ipaddr), at most two key lookups are performed:
(a) [Only for protocol version 1] One for the ip address of the remote
host, with put_host_port(ntop, port)
(b) One for the hostname.
(1) If it is an HostKeyAlias, just look for the hostname,
(2) else for put_host_port(hostname, port).
I...
2012 Dec 27
3
[PATCH] hostfile: list known names (if any) for new hostkeys
...s(ip_hostkeys);
+ if (key_hostkeys != NULL)
+ free_hostkeys(key_hostkeys);
return -1;
}
diff --git a/sshconnect2.c b/sshconnect2.c
index 6791ea3..a3ed37a 100644
--- a/sshconnect2.c
+++ b/sshconnect2.c
@@ -115,9 +115,9 @@ order_hostkeyalgs(char *host, struct sockaddr *hostaddr, u_short port)
get_hostfile_hostname_ipaddr(host, hostaddr, port, &hostname, NULL);
hostkeys = init_hostkeys();
for (i = 0; i < options.num_user_hostfiles; i++)
- load_hostkeys(hostkeys, hostname, options.user_hostfiles[i]);
+ load_hostkeys(hostkeys, hostname, NULL, options.user_hostfiles[i]);
for (i = 0; i < options.num_sy...
2018 Dec 10
2
[PATCH] cleanup of global variables server/client_version_string in sshconnect.c
...);
void ssh_login(Sensitive *, const char *, struct sockaddr *, u_short,
struct passwd *, int);
-void ssh_exchange_identification(int);
+void ssh_exchange_identification(int, char **, char **);
int verify_host_key(char *, struct sockaddr *, struct sshkey *);
@@ -48,7 +48,7 @@ void get_hostfile_hostname_ipaddr(char *, struct sockaddr *, u_short,
char **, char **);
void ssh_kex(char *, struct sockaddr *);
-void ssh_kex2(char *, struct sockaddr *, u_short);
+void ssh_kex2(char *, struct sockaddr *, u_short, const char *, const char *);
void ssh_userauth1(const char *, const char *, char *, S...