aboutsummaryrefslogtreecommitdiff
path: root/mod/hmac.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'mod/hmac.cxx')
-rw-r--r--mod/hmac.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/mod/hmac.cxx b/mod/hmac.cxx
index 83a78bd..1a78b4c 100644
--- a/mod/hmac.cxx
+++ b/mod/hmac.cxx
@@ -7,7 +7,7 @@ using namespace butl;
string brep::
compute_hmac (const options::openssl_options& o,
- const vector<char>& m,
+ const void* m, size_t l,
const char* k)
{
try
@@ -45,7 +45,7 @@ compute_hmac (const options::openssl_options& o,
// Write the message to openssl's input.
//
- out.write (m.data (), m.size ());
+ out.write (static_cast<const char*> (m), l);
out.close ();
// Read the HMAC value from openssl's output.