From b74e27ff923ca4cc02fc0586a9cf08bd3d2e7705 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sun, 27 Apr 2008 05:55:02 +0000 Subject: 2008-04-27 Tatsuhiro Tsujikawa Reorganized version information so that it can be displayed in a standard terminal screen without scrolling. Removed http, ftp from Configuration section, because they are always enabled. * src/FeatureConfig.cc * src/FeatureConfig.h * src/main.cc * src/messageDigest.cc * src/messageDigest.h * src/version_usage.cc * test/FeatureConfigTest.cc --- src/messageDigest.cc | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/messageDigest.cc') diff --git a/src/messageDigest.cc b/src/messageDigest.cc index 19015314..251c690d 100644 --- a/src/messageDigest.cc +++ b/src/messageDigest.cc @@ -33,6 +33,7 @@ */ /* copyright --> */ #include "messageDigest.h" +#include "Util.h" namespace aria2 { @@ -64,4 +65,14 @@ std::string MessageDigestContext::digestFinal() return rawMDString; } +std::string MessageDigestContext::getSupportedAlgoString() +{ + std::string algos; + for(DigestAlgoMap::const_iterator itr = digestAlgos.begin(); + itr != digestAlgos.end(); ++itr) { + algos += (*itr).first+", "; + } + return Util::trim(algos, ", "); +} + } // namespace aria2 -- cgit