version 1.162, 2006/08/30 00:06:51 |
version 1.163, 2007/05/17 20:48:13 |
|
|
Sensitive *sensitive = authctxt->sensitive; |
Sensitive *sensitive = authctxt->sensitive; |
Buffer b; |
Buffer b; |
u_char *signature, *blob; |
u_char *signature, *blob; |
char *chost, *pkalg, *p; |
char *chost, *pkalg, *p, myname[NI_MAXHOST]; |
const char *service; |
const char *service; |
u_int blen, slen; |
u_int blen, slen; |
int ok, i, len, found = 0; |
int ok, i, len, found = 0; |
|
|
return 0; |
return 0; |
} |
} |
/* figure out a name for the client host */ |
/* figure out a name for the client host */ |
p = get_local_name(packet_get_connection_in()); |
p = NULL; |
|
if (packet_connection_is_on_socket()) |
|
p = get_local_name(packet_get_connection_in()); |
|
if (p == NULL) { |
|
if (gethostname(myname, sizeof(myname)) == -1) { |
|
verbose("userauth_hostbased: gethostname: %s", |
|
strerror(errno)); |
|
} else |
|
p = xstrdup(myname); |
|
} |
if (p == NULL) { |
if (p == NULL) { |
error("userauth_hostbased: cannot get local ipaddr/name"); |
error("userauth_hostbased: cannot get local ipaddr/name"); |
key_free(private); |
key_free(private); |