From fb17956642143a5991f3cfb90d0b80e18ddc03a7 Mon Sep 17 00:00:00 2001 From: Jeff Trawick Date: Mon, 10 Apr 2006 13:31:14 +0000 Subject: [PATCH] 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 --- CHANGES | 4 ++++ support/htdbm.c | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/CHANGES b/CHANGES index 5b22308f15..c360bbc4a4 100644 --- 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] diff --git a/support/htdbm.c b/support/htdbm.c index 5ad14c088b..2c71834eb1 100644 --- a/support/htdbm.c +++ b/support/htdbm.c @@ -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: -- 2.50.0