]> granicus.if.org Git - apache/commitdiff
htdbm: Warn the user when adding a plaintext password on a platform
authorJeff Trawick <trawick@apache.org>
Mon, 10 Apr 2006 13:31:14 +0000 (13:31 +0000)
committerJeff Trawick <trawick@apache.org>
Mon, 10 Apr 2006 13:31:14 +0000 (13:31 +0000)
where it wouldn't work with the server (i.e., anywhere that has
crypt()).

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@392944 13f79535-47bb-0310-9956-ffa450edef68

CHANGES
support/htdbm.c

diff --git a/CHANGES b/CHANGES
index 5b22308f15f6007f1a2a911d2676af4d8787d6d4..c360bbc4a4eda113757cdaf5b5a30151ecc7f86a 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -2,6 +2,10 @@
 Changes with Apache 2.3.0
   [Remove entries to the current 2.0 and 2.2 section below, when backported]
 
+  *) htdbm: Warn the user when adding a plaintext password on a platform
+     where it wouldn't work with the server (i.e., anywhere that has
+     crypt()).  [Jeff Trawick]
+
   *) mod_proxy: Forward proxy requests created by mod_rewrite to the correct
      backend server. PR 39253. [Ruediger Pluem]
 
index 5ad14c088b2c3ecda3f0d7025833dc3a17eb0d10..2c71834eb1910a1d69dbd050b581bca2cc284a5e 100644 (file)
@@ -308,6 +308,10 @@ static apr_status_t htdbm_make(htdbm_t *htdbm)
         case ALG_PLAIN:
             /* XXX this len limitation is not in sync with any HTTPd len. */
             apr_cpystrn(cpw,htdbm->userpass,sizeof(cpw));
+#if APR_HAVE_CRYPT_H
+            fprintf(stderr, "Warning: Plain text passwords aren't supported by the "
+                    "server on this platform!\n");
+#endif
         break;
 #if APR_HAVE_CRYPT_H
         case ALG_CRYPT: