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.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/openbsd-compat/xcrypt.c b/openbsd-compat/xcrypt.c
index 532154f7f..c9c6283cc 100644
--- a/openbsd-compat/xcrypt.c
+++ b/openbsd-compat/xcrypt.c
@@ -108,19 +108,19 @@ xcrypt(const char *password, const char *salt)
108 salt = pick_salt(); 108 salt = pick_salt();
109 109
110# ifdef HAVE_MD5_PASSWORDS 110# ifdef HAVE_MD5_PASSWORDS
111 if (is_md5_salt(salt)) 111 if (is_md5_salt(salt))
112 crypted = md5_crypt(password, salt); 112 crypted = md5_crypt(password, salt);
113 else 113 else
114 crypted = crypt(password, salt); 114 crypted = crypt(password, salt);
115# elif defined(__hpux) && !defined(HAVE_SECUREWARE) 115# elif defined(__hpux) && !defined(HAVE_SECUREWARE)
116 if (iscomsec()) 116 if (iscomsec())
117 crypted = bigcrypt(password, salt); 117 crypted = bigcrypt(password, salt);
118 else 118 else
119 crypted = crypt(password, salt); 119 crypted = crypt(password, salt);
120# elif defined(HAVE_SECUREWARE) 120# elif defined(HAVE_SECUREWARE)
121 crypted = bigcrypt(password, salt); 121 crypted = bigcrypt(password, salt);
122# else 122# else
123 crypted = crypt(password, salt); 123 crypted = crypt(password, salt);
124# endif 124# endif
125 125
126 return crypted; 126 return crypted;