summaryrefslogtreecommitdiff
path: root/src/main.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2008-11-03 10:06:25 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2008-11-03 10:06:25 +0000
commit8fab0ff2160399487fb0010d3b0c8b431dfe545f (patch)
treedd0e1fbe1b28176773dccc0fd71bbed77fdf89fb /src/main.cc
parente6707208d1821d043b8d2b01551b5424a0768cd8 (diff)
2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
AuthConfigFactory is now part of DownloadEngine. * src/AbstractProxyRequestCommand.cc * src/AuthConfigFactory.h * src/DownloadEngine.cc * src/DownloadEngine.h * src/FtpConnection.cc * src/FtpConnection.h * src/FtpNegotiationCommand.cc * src/HttpConnection.cc * src/HttpRequest.cc * src/HttpRequest.h * src/HttpRequestCommand.cc * src/HttpResponse.cc * src/HttpResponseCommand.cc * src/HttpSkipResponseCommand.cc * src/MultiUrlRequestInfo.cc * src/main.cc * test/FtpConnectionTest.cc * test/HttpRequestTest.cc * test/HttpResponseTest.cc
Diffstat (limited to 'src/main.cc')
-rw-r--r--src/main.cc17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/main.cc b/src/main.cc
index 2faad8d4..a456bf37 100644
--- a/src/main.cc
+++ b/src/main.cc
@@ -48,11 +48,9 @@
#include "Logger.h"
#include "Util.h"
#include "BitfieldManFactory.h"
-#include "AuthConfigFactory.h"
#include "FeatureConfig.h"
#include "MultiUrlRequestInfo.h"
#include "SimpleRandomizer.h"
-#include "Netrc.h"
#include "FatalException.h"
#include "File.h"
#include "UriListParser.h"
@@ -371,21 +369,6 @@ int main(int argc, char* argv[])
logger->info("%s %s %s", PACKAGE, PACKAGE_VERSION, TARGET);
logger->info(MSG_LOGGING_STARTED);
- AuthConfigFactoryHandle authConfigFactory(new AuthConfigFactory(op));
- File netrccf(op->get(PREF_NETRC_PATH));
- if(!op->getAsBool(PREF_NO_NETRC) && netrccf.isFile()) {
- mode_t mode = netrccf.mode();
- if(mode&(S_IRWXG|S_IRWXO)) {
- logger->notice(MSG_INCORRECT_NETRC_PERMISSION,
- op->get(PREF_NETRC_PATH).c_str());
- } else {
- NetrcHandle netrc(new Netrc());
- netrc->parse(op->get(PREF_NETRC_PATH));
- authConfigFactory->setNetrc(netrc);
- }
- }
-
- AuthConfigFactorySingleton::instance(authConfigFactory);
#ifdef ENABLE_MESSAGE_DIGEST
MessageDigestHelper::staticSHA1DigestInit();
#endif // ENABLE_MESSAGE_DIGEST