aboutsummaryrefslogtreecommitdiff
path: root/mod/hmac.cxx
diff options
context:
space:
mode:
authorFrancois Kritzinger <francois@codesynthesis.com>2024-03-01 14:10:32 +0200
committerFrancois Kritzinger <francois@codesynthesis.com>2024-10-15 09:05:27 +0200
commit2536727da1f3a33ab56f97fd1e4eb9aad5b4a6b2 (patch)
treee3b2115a3e23066203b73a5f777620e35561d1d2 /mod/hmac.cxx
parent8d1100fee624c0ba19bc3c06674b80d68dad9596 (diff)
Post-review changes
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.