From: dtucker Date: Thu, 4 Mar 2004 11:59:36 +0000 (+0000) Subject: - (dtucker) [auth-passwd.c auth-sia.c auth-sia.h defines.h X-Git-Tag: V_3_8_1_P1~46 X-Git-Url: http://andersk.mit.edu/gitweb/openssh.git/commitdiff_plain/69a20cffc7aa59944743bc7e9d1bb3ada9bb6110 - (dtucker) [auth-passwd.c auth-sia.c auth-sia.h defines.h openbsd-compat/xcrypt.c] Bug #802: Fix build error on Tru64 when configured --with-osfsia. ok djm@ --- diff --git a/ChangeLog b/ChangeLog index 53e0792d..33abfb7d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -3,6 +3,9 @@ -DUSE_POSIX_THREADS. From antoine.verheijen at ualbert ca. ok djm@ - (dtucker) [auth-pam.c] Reset signal status when starting pam auth thread, prevent hanging during PAM keyboard-interactive authentications. ok djm@ + - (dtucker) [auth-passwd.c auth-sia.c auth-sia.h defines.h + openbsd-compat/xcrypt.c] Bug #802: Fix build error on Tru64 when + configured --with-osfsia. ok djm@ 20040303 - (djm) [configure.ac ssh-agent.c] Use prctl to prevent ptrace on ssh-agent diff --git a/auth-passwd.c b/auth-passwd.c index b9679abd..beaf0fa6 100644 --- a/auth-passwd.c +++ b/auth-passwd.c @@ -73,13 +73,6 @@ auth_password(Authctxt *authctxt, const char *password) if (*password == '\0' && options.permit_empty_passwd == 0) return 0; -#if defined(HAVE_OSF_SIA) - /* - * XXX: any reason this is before krb? could be moved to - * sys_auth_passwd()? -dt - */ - return auth_sia_password(authctxt, password) && ok; -#endif #ifdef KRB5 if (options.kerberos_authentication == 1) { int ret = auth_krb5_password(authctxt, password); diff --git a/auth-sia.c b/auth-sia.c index cd2dcb84..63f55d07 100644 --- a/auth-sia.c +++ b/auth-sia.c @@ -47,7 +47,7 @@ extern int saved_argc; extern char **saved_argv; int -auth_sia_password(Authctxt *authctxt, char *pass) +sys_auth_passwd(Authctxt *authctxt, char *pass) { int ret; SIAENTITY *ent = NULL; diff --git a/auth-sia.h b/auth-sia.h index 38164ff8..ca55e913 100644 --- a/auth-sia.h +++ b/auth-sia.h @@ -26,7 +26,7 @@ #ifdef HAVE_OSF_SIA -int auth_sia_password(Authctxt *, char *); +int sys_auth_passwd(Authctxt *, char *); void session_setup_sia(struct passwd *, char *); #endif /* HAVE_OSF_SIA */ diff --git a/defines.h b/defines.h index 3d6b688f..dc9155c6 100644 --- a/defines.h +++ b/defines.h @@ -616,6 +616,13 @@ struct winsize { # define USE_LASTLOG #endif +#ifdef HAVE_OSF_SIA +# ifdef USE_SHADOW +# undef USE_SHADOW +# endif +# define CUSTOM_SYS_AUTH_PASSWD 1 +#endif + /** end of login recorder definitions */ #endif /* _DEFINES_H */ diff --git a/openbsd-compat/xcrypt.c b/openbsd-compat/xcrypt.c index a0fe6c62..c3cea3c8 100644 --- a/openbsd-compat/xcrypt.c +++ b/openbsd-compat/xcrypt.c @@ -24,8 +24,6 @@ #include "includes.h" -#if !defined(HAVE_OSF_SIA) - # ifdef HAVE_CRYPT_H # include # endif @@ -108,5 +106,3 @@ shadow_pw(struct passwd *pw) return pw_password; } - -#endif /* !defined(HAVE_OSF_SIA) */