From: Florian Forster Date: Fri, 27 Nov 2015 09:03:54 +0000 (+0100) Subject: mqtt plugin: Rename "CACertificateFile" to "CACert". X-Git-Tag: collectd-5.6.0~575^2~2 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=630b03c33aab0675fe9607d5ea28553782b334a5;p=collectd.git mqtt plugin: Rename "CACertificateFile" to "CACert". This way the option name is consistent with the name used by the cURL plugins. Sorry for previous comments in #1345 that pushed towards copying Apache HTTPd's naming schema -- being consistent within collectd is more important. --- diff --git a/src/collectd.conf.pod b/src/collectd.conf.pod index ee05c3a8..baae0274 100644 --- a/src/collectd.conf.pod +++ b/src/collectd.conf.pod @@ -3347,7 +3347,7 @@ Configures the topic(s) to subscribe to. You can use the single level C<+> and multi level C<#> wildcards. Defaults to B, i.e. all topics beneath the B branch. -=item B I +=item B I Path to the PEM-encoded CA certificate file. Setting this option enables TLS communication with the MQTT broker, and as such, B should be the TLS-enabled diff --git a/src/mqtt.c b/src/mqtt.c index 403b0d31..f8c1e0ef 100644 --- a/src/mqtt.c +++ b/src/mqtt.c @@ -532,7 +532,7 @@ static int mqtt_write (const data_set_t *ds, const value_list_t *vl, * StoreRates true * Retain false * QoS 0 - * CACertificateFile "ca.pem" Enables TLS if set + * CACert "ca.pem" Enables TLS if set * CertificateFile "client-cert.pem" optional * CertificateKeyFile "client-key.pem" optional * TLSprotocol "tlsv1.2" optional @@ -612,7 +612,7 @@ static int mqtt_config_publisher (oconfig_item_t *ci) cf_util_get_boolean (child, &conf->store_rates); else if (strcasecmp ("Retain", child->key) == 0) cf_util_get_boolean (child, &conf->retain); - else if (strcasecmp ("CACertificateFile", child->key) == 0) + else if (strcasecmp ("CACert", child->key) == 0) cf_util_get_string (child, &conf->cacertificatefile); else if (strcasecmp ("CertificateFile", child->key) == 0) cf_util_get_string (child, &conf->certificatefile);