From: Florian Forster Date: Sat, 11 Apr 2009 14:59:46 +0000 (+0200) Subject: network plugin: Talk about “HMAC-SHA-256” in the documentation and error messages. X-Git-Tag: collectd-4.7.0~57 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=1d47fb26f9b93898e9dcd70519c8a4167af3d5d3;p=collectd.git network plugin: Talk about “HMAC-SHA-256” in the documentation and error messages. --- diff --git a/src/collectd.conf.pod b/src/collectd.conf.pod index 581da285..b335488c 100644 --- a/src/collectd.conf.pod +++ b/src/collectd.conf.pod @@ -1596,10 +1596,12 @@ BListenE> blocks: Set the security you require for network communication. When the security level has been set to B, data sent over the network will be encrypted using -I and only encrypted data will be accepted when receiving. When set to -B, transmitted data is signed using I and only signed and -encrypted data is accepted when receiving. When set to B, data is sent -without any security and all data is accepted when receiving. +I and only encrypted data will be accepted when receiving. The +integrity of encrypted packets is ensures using I. When set to B, +transmitted data is signed using the I message authentication +code and only signed and encrypted data is accepted when receiving. When set to +B, data is sent without any security and all data is accepted when +receiving. This feature is only available if the I plugin was linked with I. diff --git a/src/network.c b/src/network.c index 920b8913..ca63e965 100644 --- a/src/network.c +++ b/src/network.c @@ -761,7 +761,7 @@ static int parse_part_sign_sha256 (sockent_t *se, /* {{{ */ err = gcry_md_open (&hd, GCRY_MD_SHA256, GCRY_MD_FLAG_HMAC); if (err != 0) { - ERROR ("network plugin: Creating HMAC object failed: %s", + ERROR ("network plugin: Creating HMAC-SHA-256 object failed: %s", gcry_strerror (err)); return (-1); } @@ -1030,7 +1030,7 @@ static int parse_packet (receive_list_entry_t *rle) /* {{{ */ status = parse_part_sign_sha256 (se, &buffer, &buffer_len); if (status < 0) { - ERROR ("network plugin: Verifying SHA-256 " + ERROR ("network plugin: Verifying HMAC-SHA-256 " "signature failed " "with status %i.", status); break; @@ -1038,7 +1038,7 @@ static int parse_packet (receive_list_entry_t *rle) /* {{{ */ else if (status > 0) { ERROR ("network plugin: Ignoring packet with " - "invalid SHA-256 signature."); + "invalid HMAC-SHA-256 signature."); break; } else