Renamed MessageDigestHelper as message_digest_helper

Static member variables in MessageDigestHelper class are now functions
under message_digest namespace.
This commit is contained in:
Tatsuhiro Tsujikawa 2011-02-05 23:38:51 +09:00
parent 38202a5565
commit 2666bc8170
18 changed files with 90 additions and 100 deletions

View file

@ -14,7 +14,7 @@
#include "UTMetadataRequestTracker.h"
#include "bittorrent_helper.h"
#include "MessageDigest.h"
#include "MessageDigestHelper.h"
#include "message_digest_helper.h"
namespace aria2 {
@ -80,9 +80,9 @@ void UTMetadataDataExtensionMessageTest::testDoReceivedAction()
std::string metadata = piece0+piece1;
unsigned char infoHash[INFO_HASH_LENGTH];
MessageDigestHelper::digest(infoHash, INFO_HASH_LENGTH,
MessageDigest::sha1(),
metadata.data(), metadata.size());
message_digest::digest(infoHash, INFO_HASH_LENGTH,
MessageDigest::sha1(),
metadata.data(), metadata.size());
attrs->infoHash = std::string(&infoHash[0], &infoHash[20]);
dctx->setAttribute(bittorrent::BITTORRENT, attrs);