Commit 927ba95a authored by Jeff Trawick's avatar Jeff Trawick
Browse files

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()).


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@392944 13f79535-47bb-0310-9956-ffa450edef68
parent da57990e
Loading
Loading
Loading
Loading
+4 −0
Changes for CHANGES: 4 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -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]
+4 −0
Changes for support/htdbm.c: 4 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -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: