summaryrefslogtreecommitdiff
path: root/openbsd-compat/xcrypt.c
diff options
context:
space:
mode:
Diffstat (limited to 'openbsd-compat/xcrypt.c')
-rw-r--r--openbsd-compat/xcrypt.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/openbsd-compat/xcrypt.c b/openbsd-compat/xcrypt.c
index 882185718..5b5d69c72 100644
--- a/openbsd-compat/xcrypt.c
+++ b/openbsd-compat/xcrypt.c
@@ -65,12 +65,12 @@ xcrypt(const char *password, const char *salt)
65 crypted = md5_crypt(password, salt); 65 crypted = md5_crypt(password, salt);
66 else 66 else
67 crypted = crypt(password, salt); 67 crypted = crypt(password, salt);
68# elsif defined(__hpux) && !defined(HAVE_SECUREWARE) 68# elif defined(__hpux) && !defined(HAVE_SECUREWARE)
69 if (iscomsec()) 69 if (iscomsec())
70 crypted = bigcrypt(password, salt); 70 crypted = bigcrypt(password, salt);
71 else 71 else
72 crypted = crypt(password, salt); 72 crypted = crypt(password, salt);
73# elsif defined(HAVE_SECUREWARE) 73# elif defined(HAVE_SECUREWARE)
74 crypted = bigcrypt(password, salt); 74 crypted = bigcrypt(password, salt);
75# else 75# else
76 crypted = crypt(password, salt); 76 crypted = crypt(password, salt);
@@ -99,12 +99,12 @@ shadow_pw(struct passwd *pw)
99 struct passwd_adjunct *spw; 99 struct passwd_adjunct *spw;
100 if (issecure() && (spw = getpwanam(pw->pw_name)) != NULL) 100 if (issecure() && (spw = getpwanam(pw->pw_name)) != NULL)
101 pw_password = spw->pwa_passwd; 101 pw_password = spw->pwa_passwd;
102# elsif defined(HAVE_SECUREWARE) 102# elif defined(HAVE_SECUREWARE)
103 struct pr_passwd *spw = getprpwnam(pw->pw_name); 103 struct pr_passwd *spw = getprpwnam(pw->pw_name);
104 104
105 if (spw != NULL) 105 if (spw != NULL)
106 pw_password = spw->ufld.fd_encrypt; 106 pw_password = spw->ufld.fd_encrypt;
107# elsif defined(__hpux) && !defined(HAVE_SECUREWARE) 107# elif defined(__hpux) && !defined(HAVE_SECUREWARE)
108 struct pr_passwd *spw; 108 struct pr_passwd *spw;
109 if (iscomsec() && (spw = getprpwnam(pw->pw_name)) != NULL) 109 if (iscomsec() && (spw = getprpwnam(pw->pw_name)) != NULL)
110 pw_password = spw->ufld.fd_encrypt; 110 pw_password = spw->ufld.fd_encrypt;