diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2008-04-27 05:55:02 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2008-04-27 05:55:02 +0000 |
| commit | b74e27ff923ca4cc02fc0586a9cf08bd3d2e7705 (patch) | |
| tree | 5ff05dd056d636758e47ae6528b38a16b1d3e4c5 /src/messageDigest.cc | |
| parent | 393830739199a8da33df1922b547397eeeb486d4 (diff) | |
2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
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
Diffstat (limited to 'src/messageDigest.cc')
| -rw-r--r-- | src/messageDigest.cc | 11 |
1 files changed, 11 insertions, 0 deletions
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 |
