projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1fa4ef5
)
network plugin: Compatibility fixes with old versions of libgcrypt.
author
Florian Forster
<octo@huhu.verplant.org>
Fri, 17 Apr 2009 16:17:54 +0000
(18:17 +0200)
committer
Florian Forster
<octo@huhu.verplant.org>
Fri, 17 Apr 2009 16:17:54 +0000
(18:17 +0200)
src/network.c
patch
|
blob
|
history
diff --git
a/src/network.c
b/src/network.c
index
d6c5a4b
..
7023eaa
100644
(file)
--- a/
src/network.c
+++ b/
src/network.c
@@
-2084,7
+2084,7
@@
static void networt_send_buffer_encrypted (sockent_t *se, /* {{{ */
pea.orig_length = htons ((uint16_t) in_buffer_size);
/* Chose a random initialization vector. */
pea.orig_length = htons ((uint16_t) in_buffer_size);
/* Chose a random initialization vector. */
- gcry_randomize (&pea.iv, sizeof (pea.iv), GCRY_STRONG_RANDOM);
+ gcry_randomize (
(void *)
&pea.iv, sizeof (pea.iv), GCRY_STRONG_RANDOM);
/* Create hash of the payload */
gcry_md_hash_buffer (GCRY_MD_SHA1, pea.hash, in_buffer, in_buffer_size);
/* Create hash of the payload */
gcry_md_hash_buffer (GCRY_MD_SHA1, pea.hash, in_buffer, in_buffer_size);
@@
-2092,7
+2092,7
@@
static void networt_send_buffer_encrypted (sockent_t *se, /* {{{ */
/* Fill the extra field with random values. Some entropy in the encrypted
* data is usually not a bad thing, I hope. */
if (padding_size > 0)
/* Fill the extra field with random values. Some entropy in the encrypted
* data is usually not a bad thing, I hope. */
if (padding_size > 0)
- gcry_randomize (&pea.padding, padding_size, GCRY_STRONG_RANDOM);
+ gcry_randomize (
(void *)
&pea.padding, padding_size, GCRY_STRONG_RANDOM);
/* Initialize the buffer */
buffer_offset = 0;
/* Initialize the buffer */
buffer_offset = 0;