diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2014-07-14 21:32:48 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2014-07-14 21:32:48 +0900 |
| commit | 98681552fc811b797045851ff5b921d31dc5ca5f (patch) | |
| tree | 9e59e67c6d52281f5ccc0deac74ceb96b8fc3056 /src/util_security.cc | |
| parent | 04caefa406d2041993eacd1b279b99f79585704d (diff) | |
Fix compile error on big endian platform
Diffstat (limited to 'src/util_security.cc')
| -rw-r--r-- | src/util_security.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/util_security.cc b/src/util_security.cc index a6faf1ec..c7984cfc 100644 --- a/src/util_security.cc +++ b/src/util_security.cc @@ -37,7 +37,6 @@ #include "FatalException.h" #include "util.h" -#include "crypto_endian.h" namespace { using namespace aria2; @@ -166,7 +165,7 @@ HMACResult PBKDF2(HMAC* hmac, for (uint32_t counter = 1; key_length; ++counter) { hmac->update(salt, salt_length); - const uint32_t c = crypto::__crypto_be(counter); + const uint32_t c = htonl(counter); hmac->update((char*)&c, sizeof(c)); auto bytes = hmac->getResult().getBytes(); |
