From: Florian Forster Date: Sat, 25 Apr 2009 13:39:11 +0000 (+0200) Subject: network plugin: Some fixed to get encryption up and running again. X-Git-Tag: collectd-4.7.0~40^2~3 X-Git-Url: https://git.octo.it/?a=commitdiff_plain;h=688317517dc8909d786cffba8441434c4efb8c98;p=collectd.git network plugin: Some fixed to get encryption up and running again. Wow, that was easy! --- diff --git a/src/network.c b/src/network.c index 1425629c..cc482150 100644 --- a/src/network.c +++ b/src/network.c @@ -68,12 +68,12 @@ /* * Maximum size required for encryption / signing: * - * 44 bytes for the encryption header + * 42 bytes for the encryption header * + 64 bytes for the username * ----------- - * = 108 bytes + * = 106 bytes */ -#define BUFF_SIG_SIZE 108 +#define BUFF_SIG_SIZE 106 /* * Private data types @@ -226,7 +226,7 @@ typedef struct part_signature_sha256_s part_signature_sha256_t; * +---------------------------------------------------------------+ */ /* Minimum size */ -#define PART_ENCRYPTION_AES256_SIZE 44 +#define PART_ENCRYPTION_AES256_SIZE 42 struct part_encryption_aes256_s { part_header_t head;