projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa1bb33
)
libcollectdclient: Fix size argument passed to CryptImportKey().
author
Florian Forster
<octo@ssc-serv.com>
Wed, 29 Jan 2014 07:11:50 +0000
(08:11 +0100)
committer
Florian Forster
<octo@collectd.org>
Wed, 29 Jan 2014 07:11:50 +0000
(08:11 +0100)
src/libcollectdclient/win_hmac.c
patch
|
blob
|
history
diff --git
a/src/libcollectdclient/win_hmac.c
b/src/libcollectdclient/win_hmac.c
index
cf102d2
..
7448e26
100644
(file)
--- a/
src/libcollectdclient/win_hmac.c
+++ b/
src/libcollectdclient/win_hmac.c
@@
-75,7
+75,8
@@
static HCRYPTKEY create_hmac_key_exact (HCRYPTPROV hProv,
* The "CRYPT_IPSEC_HMAC_KEY" is required to allow RC2 keys longer than
* 16 byte. Again, this is documented on the "CryptImportKey" page as a
* side note. */
- status = CryptImportKey (hProv, (BYTE *) data, sizeof (data),
+ status = CryptImportKey (hProv, (BYTE *) data,
+ /* dwDataLen = */ sizeof (*data) + data->key_size,
/* public key = */ 0,
/* flags = */ CRYPT_IPSEC_HMAC_KEY,
&ret_key);