mirror of
https://github.com/aria2/aria2.git
synced 2025-04-06 05:57:36 +03:00
Renamed MessageDigestHelper as message_digest_helper
Static member variables in MessageDigestHelper class are now functions under message_digest namespace.
This commit is contained in:
parent
38202a5565
commit
2666bc8170
18 changed files with 90 additions and 100 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue