summaryrefslogtreecommitdiffstats
path: root/usr.sbin/httpd/src/ap/ap_checkpass.c
diff options
context:
space:
mode:
authorhenning <henning@openbsd.org>2004-12-02 19:42:46 +0000
committerhenning <henning@openbsd.org>2004-12-02 19:42:46 +0000
commitbeb894e9112853f8ec6191dfabc17833945d5384 (patch)
treeb54efe18b2c59c6e8b8e7c957cc8c0be1793f8cd /usr.sbin/httpd/src/ap/ap_checkpass.c
parentWe do not support 2MB machines, so don't bother taking them into account (diff)
downloadwireguard-openbsd-beb894e9112853f8ec6191dfabc17833945d5384.tar.xz
wireguard-openbsd-beb894e9112853f8ec6191dfabc17833945d5384.zip
big time httpd cleanup
this diff removes a lot of #ifdef'd stuff that is irrelevant for us. done by Daniel Ouellet after my advice. tested by many, ok miod@
Diffstat (limited to 'usr.sbin/httpd/src/ap/ap_checkpass.c')
-rw-r--r--usr.sbin/httpd/src/ap/ap_checkpass.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/usr.sbin/httpd/src/ap/ap_checkpass.c b/usr.sbin/httpd/src/ap/ap_checkpass.c
index aebb2ad5586..5b5f13fac55 100644
--- a/usr.sbin/httpd/src/ap/ap_checkpass.c
+++ b/usr.sbin/httpd/src/ap/ap_checkpass.c
@@ -101,15 +101,7 @@ API_EXPORT(char *) ap_validate_password(const char *passwd, const char *hash)
/*
* It's not our algorithm, so feed it to crypt() if possible.
*/
-#if defined(WIN32) || defined(NETWARE)
- /*
- * On Windows, the only alternative to our MD5 algorithm is plain
- * text.
- */
- ap_cpystrn(sample, passwd, sizeof(sample) - 1);
-#else
ap_cpystrn(sample, (char *)crypt(passwd, hash), sizeof(sample) - 1);
-#endif
}
return (strcmp(sample, hash) == 0) ? NULL : "password mismatch";
}