Browse Source

[master] be sure to include cstring for memcpy, and add std:: for it.

committing at my discretion.
JINMEI Tatuya 13 years ago
parent
commit
14a18f3239
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/lib/cryptolink/crypto_hmac.cc

+ 3 - 1
src/lib/cryptolink/crypto_hmac.cc

@@ -23,6 +23,8 @@
 #include <botan/hash.h>
 #include <botan/types.h>
 
+#include <cstring>
+
 namespace {
 const char*
 getBotanHashAlgorithmName(isc::cryptolink::HashAlgorithm algorithm) {
@@ -155,7 +157,7 @@ public:
             if (output_size > len) {
                 output_size = len;
             }
-            memcpy(result, b_result.begin(), output_size);
+            std::memcpy(result, b_result.begin(), output_size);
         } catch (const Botan::Exception& exc) {
             isc_throw(isc::cryptolink::LibraryError, exc.what());
         }