summaryrefslogtreecommitdiffstats
path: root/crypto/openssh
diff options
context:
space:
mode:
authordinoex <dinoex@FreeBSD.org>2002-06-24 11:11:30 +0000
committerdinoex <dinoex@FreeBSD.org>2002-06-24 11:11:30 +0000
commitfd860e7d161e33a13065426b1e71ab8af801530c (patch)
tree18504a97490638db0e090e0bca989c4c2771f06b /crypto/openssh
parenta2f0c70ddc8791d30c2d2fefc1c150452acadf5a (diff)
downloadFreeBSD-src-fd860e7d161e33a13065426b1e71ab8af801530c.zip
FreeBSD-src-fd860e7d161e33a13065426b1e71ab8af801530c.tar.gz
remove declaration of authlog
use variable from_host Reviewed by: des
Diffstat (limited to 'crypto/openssh')
-rw-r--r--crypto/openssh/auth1.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/crypto/openssh/auth1.c b/crypto/openssh/auth1.c
index 8d8b5ce..423c8d4 100644
--- a/crypto/openssh/auth1.c
+++ b/crypto/openssh/auth1.c
@@ -81,19 +81,16 @@ do_authloop(Authctxt *authctxt)
u_int ulen;
int type = 0;
struct passwd *pw = authctxt->pw;
- void (*authlog) (const char *fmt,...) = verbose;
#ifdef HAVE_LOGIN_CAP
login_cap_t *lc;
#endif /* HAVE_LOGIN_CAP */
#ifdef USE_PAM
struct inverted_pam_cookie *pam_cookie;
#endif /* USE_PAM */
-#if defined(HAVE_LOGIN_CAP)
const char *from_host, *from_ip;
from_host = get_canonical_hostname(options.verify_reverse_mapping);
from_ip = get_remote_ipaddr();
-#endif /* HAVE_LOGIN_CAP */
debug("Attempting authentication for %s%.100s.",
authctxt->valid ? "" : "illegal user ", authctxt->user);
@@ -386,8 +383,7 @@ do_authloop(Authctxt *authctxt)
if (pw != NULL && pw->pw_uid == 0)
log("ROOT LOGIN as '%.100s' from %.100s",
- pw->pw_name,
- get_canonical_hostname(options.verify_reverse_mapping));
+ pw->pw_name, from_host );
/* Log before sending the reply */
auth_log(authctxt, authenticated, get_authname(type), info);
OpenPOWER on IntegriCloud