summaryrefslogtreecommitdiff
path: root/support/htdbm.c
diff options
context:
space:
mode:
authorStefan Fritsch <sf@apache.org>2012-10-07 09:10:14 +0000
committerStefan Fritsch <sf@apache.org>2012-10-07 09:10:14 +0000
commit566312f891445678481d3a5cb5050f12fb518f3a (patch)
treed1f0186597c76089b631ae46a2579f380ef021a6 /support/htdbm.c
parentc2eb43db553701ec12e693d13bca8c7bca113061 (diff)
downloadhttpd-566312f891445678481d3a5cb5050f12fb518f3a.tar.gz
Optionally read passwords from stdin
PR: 40243 Submitted by: Adomas Paltanavicius <adomas paltanavicius gmail com>, sf git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1395256 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'support/htdbm.c')
-rw-r--r--support/htdbm.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/support/htdbm.c b/support/htdbm.c
index c208b8428a..1ce57436d8 100644
--- a/support/htdbm.c
+++ b/support/htdbm.c
@@ -276,11 +276,11 @@ static void htdbm_usage(void)
{
fprintf(stderr,
"htdbm -- program for manipulating DBM password databases.\n\n"
- "Usage: htdbm [-cmBdpstvx] [-Ccost] [-TDBTYPE] database username\n"
+ "Usage: htdbm [-cimBdpstvx] [-Ccost] [-TDBTYPE] database username\n"
" -b[cmBdptsv] [-Ccost] [-TDBTYPE] database username password\n"
- " -n[mBdpst] [-Ccost] username\n"
+ " -n[imBdpst] [-Ccost] username\n"
" -nb[mBdpst] [-Ccost] username password\n"
- " -v[mBdps] [-Ccost] [-TDBTYPE] database username\n"
+ " -v[imBdps] [-Ccost] [-TDBTYPE] database username\n"
" -vb[mBdps] [-Ccost] [-TDBTYPE] database username password\n"
" -x [-Ccost] [-TDBTYPE] database username\n"
" -l [-Ccost] [-TDBTYPE] database\n"
@@ -288,6 +288,7 @@ static void htdbm_usage(void)
" -b Use the password from the command line rather than prompting for it.\n"
" -c Create a new database.\n"
" -n Don't update database; display results on stdout.\n"
+ " -i Read password from stdin without verification (for script usage)\n"
" -m Force MD5 encryption of the password (default).\n"
" -B Force BCRYPT encryption of the password (very secure).\n"
" -d Force CRYPT encryption of the password (8 chars max, insecure).\n"