diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2011-04-22 23:38:59 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2011-04-22 23:38:59 +0900 |
| commit | 2c0476e6d9033cdf58b9899b165bbddd974e88db (patch) | |
| tree | 1476e6d5af13b4e90010a6011f5214273d248155 /src/OptionHandlerFactory.cc | |
| parent | 211c4ea9f45db6482f76ccc9945ee19fc78f7e9d (diff) | |
Erase user and password specified in command-line from argv.
The user and password is masked with '*'.
Diffstat (limited to 'src/OptionHandlerFactory.cc')
| -rw-r--r-- | src/OptionHandlerFactory.cc | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/OptionHandlerFactory.cc b/src/OptionHandlerFactory.cc index 82c43ef0..4e8d3ed3 100644 --- a/src/OptionHandlerFactory.cc +++ b/src/OptionHandlerFactory.cc @@ -619,6 +619,7 @@ OptionHandlers OptionHandlerFactory::createOptionHandlers() (PREF_RPC_USER, TEXT_RPC_USER)); op->addTag(TAG_RPC); + op->setEraseAfterParse(true); handlers.push_back(op); } { @@ -626,6 +627,7 @@ OptionHandlers OptionHandlerFactory::createOptionHandlers() (PREF_RPC_PASSWD, TEXT_RPC_PASSWD)); op->addTag(TAG_RPC); + op->setEraseAfterParse(true); handlers.push_back(op); } { @@ -676,6 +678,7 @@ OptionHandlers OptionHandlerFactory::createOptionHandlers() TEXT_XML_RPC_USER)), PREF_RPC_USER)); op->addTag(TAG_RPC); + op->setEraseAfterParse(true); handlers.push_back(op); } { @@ -687,6 +690,7 @@ OptionHandlers OptionHandlerFactory::createOptionHandlers() TEXT_XML_RPC_PASSWD)), PREF_RPC_PASSWD)); op->addTag(TAG_RPC); + op->setEraseAfterParse(true); handlers.push_back(op); } // HTTP/FTP options @@ -971,6 +975,7 @@ OptionHandlers OptionHandlerFactory::createOptionHandlers() TEXT_HTTP_PASSWD)); op->addTag(TAG_BASIC); op->addTag(TAG_HTTP); + op->setEraseAfterParse(true); handlers.push_back(op); } { @@ -979,6 +984,7 @@ OptionHandlers OptionHandlerFactory::createOptionHandlers() TEXT_HTTP_USER)); op->addTag(TAG_BASIC); op->addTag(TAG_HTTP); + op->setEraseAfterParse(true); handlers.push_back(op); } { @@ -1055,6 +1061,7 @@ OptionHandlers OptionHandlerFactory::createOptionHandlers() TEXT_FTP_PASSWD)); op->addTag(TAG_BASIC); op->addTag(TAG_FTP); + op->setEraseAfterParse(true); handlers.push_back(op); } { @@ -1091,6 +1098,7 @@ OptionHandlers OptionHandlerFactory::createOptionHandlers() TEXT_FTP_USER)); op->addTag(TAG_BASIC); op->addTag(TAG_FTP); + op->setEraseAfterParse(true); handlers.push_back(op); } { @@ -1117,6 +1125,7 @@ OptionHandlers OptionHandlerFactory::createOptionHandlers() TEXT_HTTP_PROXY_PASSWD, NO_DEFAULT_VALUE)); op->addTag(TAG_HTTP); + op->setEraseAfterParse(true); handlers.push_back(op); } { @@ -1125,6 +1134,7 @@ OptionHandlers OptionHandlerFactory::createOptionHandlers() TEXT_HTTP_PROXY_USER, NO_DEFAULT_VALUE)); op->addTag(TAG_HTTP); + op->setEraseAfterParse(true); handlers.push_back(op); } { @@ -1143,6 +1153,7 @@ OptionHandlers OptionHandlerFactory::createOptionHandlers() NO_DEFAULT_VALUE)); op->addTag(TAG_HTTP); op->addTag(TAG_HTTPS); + op->setEraseAfterParse(true); handlers.push_back(op); } { @@ -1152,6 +1163,7 @@ OptionHandlers OptionHandlerFactory::createOptionHandlers() NO_DEFAULT_VALUE)); op->addTag(TAG_HTTP); op->addTag(TAG_HTTPS); + op->setEraseAfterParse(true); handlers.push_back(op); } { @@ -1168,6 +1180,7 @@ OptionHandlers OptionHandlerFactory::createOptionHandlers() TEXT_FTP_PROXY_PASSWD, NO_DEFAULT_VALUE)); op->addTag(TAG_FTP); + op->setEraseAfterParse(true); handlers.push_back(op); } { @@ -1176,6 +1189,7 @@ OptionHandlers OptionHandlerFactory::createOptionHandlers() TEXT_FTP_PROXY_USER, NO_DEFAULT_VALUE)); op->addTag(TAG_FTP); + op->setEraseAfterParse(true); handlers.push_back(op); } { @@ -1196,6 +1210,7 @@ OptionHandlers OptionHandlerFactory::createOptionHandlers() op->addTag(TAG_FTP); op->addTag(TAG_HTTP); op->addTag(TAG_HTTPS); + op->setEraseAfterParse(true); handlers.push_back(op); } { @@ -1206,6 +1221,7 @@ OptionHandlers OptionHandlerFactory::createOptionHandlers() op->addTag(TAG_FTP); op->addTag(TAG_HTTP); op->addTag(TAG_HTTPS); + op->setEraseAfterParse(true); handlers.push_back(op); } { |
