version 1.310, 2019/01/19 21:31:32 |
version 1.311, 2019/01/19 21:36:38 |
|
|
#include "authfd.h" |
#include "authfd.h" |
#include "kex.h" |
#include "kex.h" |
|
|
#include "opacket.h" /* XXX */ |
|
extern struct ssh *active_state; /* XXX */ |
|
|
|
struct sshkey *previous_host_key = NULL; |
struct sshkey *previous_host_key = NULL; |
|
|
static int matching_host_key_dns = 0; |
static int matching_host_key_dns = 0; |
|
|
ssh_kex2(ssh, host, hostaddr, port); |
ssh_kex2(ssh, host, hostaddr, port); |
ssh_userauth2(ssh, local_user, server_user, host, sensitive); |
ssh_userauth2(ssh, local_user, server_user, host, sensitive); |
free(local_user); |
free(local_user); |
} |
|
|
|
void |
|
ssh_put_password(char *password) |
|
{ |
|
int size; |
|
char *padded; |
|
|
|
if (datafellows & SSH_BUG_PASSWORDPAD) { |
|
packet_put_cstring(password); |
|
return; |
|
} |
|
size = ROUNDUP(strlen(password) + 1, 32); |
|
padded = xcalloc(1, size); |
|
strlcpy(padded, password, size); |
|
packet_put_string(padded, size); |
|
explicit_bzero(padded, size); |
|
free(padded); |
|
} |
} |
|
|
/* print all known host keys for a given host, but skip keys of given type */ |
/* print all known host keys for a given host, but skip keys of given type */ |