diff options
author | Kevin Steves <stevesk@pobox.com> | 2002-04-04 21:02:28 +0200 |
---|---|---|
committer | Kevin Steves <stevesk@pobox.com> | 2002-04-04 21:02:28 +0200 |
commit | e683e7643997118ac51b18c073a6aba410c0cc3c (patch) | |
tree | f2a98c2979198a89e00eb5cdd3d6fbf0fb986377 /auth-sia.c | |
parent | - (bal) mispelling in uidswap.c (portable only) (diff) | |
download | openssh-e683e7643997118ac51b18c073a6aba410c0cc3c.tar.xz openssh-e683e7643997118ac51b18c073a6aba410c0cc3c.zip |
- (stevesk) [auth-pam.c auth-pam.h auth-passwd.c auth-sia.c auth-sia.h
auth1.c auth2.c] PAM, OSF_SIA password auth cleanup; from djm.
Diffstat (limited to 'auth-sia.c')
-rw-r--r-- | auth-sia.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/auth-sia.c b/auth-sia.c index 8585f5d6b..2bace5d47 100644 --- a/auth-sia.c +++ b/auth-sia.c @@ -6,6 +6,7 @@ #include "log.h" #include "servconf.h" #include "canohost.h" +#include "auth.h" #include <sia.h> #include <siad.h> @@ -23,15 +24,16 @@ extern char **saved_argv; extern int errno; int -auth_sia_password(char *user, char *pass) +auth_sia_password(Authctxt *authctxt, char *pass) { int ret; SIAENTITY *ent = NULL; const char *host; + char *user = authctxt->user; host = get_canonical_hostname(options.verify_reverse_mapping); - if (!user || !pass) + if (!user || !pass || pass[0] == '\0') return(0); if (sia_ses_init(&ent, saved_argc, saved_argv, host, user, NULL, 0, |