Changeset View
Changeset View
Standalone View
Standalone View
sshd.c
Show First 20 Lines • Show All 2,137 Lines • ▼ Show 20 Lines | #endif | ||||
/* | /* | ||||
* The rest of the code depends on the fact that | * The rest of the code depends on the fact that | ||||
* ssh_remote_ipaddr() caches the remote ip, even if | * ssh_remote_ipaddr() caches the remote ip, even if | ||||
* the socket goes away. | * the socket goes away. | ||||
*/ | */ | ||||
remote_ip = ssh_remote_ipaddr(ssh); | remote_ip = ssh_remote_ipaddr(ssh); | ||||
#ifdef HAVE_LOGIN_CAP | |||||
/* Also caches remote hostname for sandboxed child. */ | |||||
auth_get_canonical_hostname(ssh, options.use_dns); | |||||
#endif | |||||
#ifdef SSH_AUDIT_EVENTS | #ifdef SSH_AUDIT_EVENTS | ||||
audit_connection_from(remote_ip, remote_port); | audit_connection_from(remote_ip, remote_port); | ||||
#endif | #endif | ||||
#ifdef LIBWRAP | #ifdef LIBWRAP | ||||
allow_severity = options.log_facility|LOG_INFO; | allow_severity = options.log_facility|LOG_INFO; | ||||
deny_severity = options.log_facility|LOG_WARNING; | deny_severity = options.log_facility|LOG_WARNING; | ||||
/* Check whether logins are denied from this host. */ | /* Check whether logins are denied from this host. */ | ||||
if (packet_connection_is_on_socket()) { | if (packet_connection_is_on_socket()) { | ||||
▲ Show 20 Lines • Show All 274 Lines • Show Last 20 Lines |