From: Florian Forster Date: Fri, 27 Nov 2015 09:04:35 +0000 (+0100) Subject: mqtt plugin: Rename "TLSprotocol" to "TLSProtocol". X-Git-Tag: collectd-5.6.0~575^2~1 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=aaff848cf8b7752c7549590637f1b7702e32221e;p=collectd.git mqtt plugin: Rename "TLSprotocol" to "TLSProtocol". --- diff --git a/src/collectd.conf.pod b/src/collectd.conf.pod index baae0274..82fa4ce9 100644 --- a/src/collectd.conf.pod +++ b/src/collectd.conf.pod @@ -3362,7 +3362,7 @@ connecting to the MQTT broker. Requires B Path to the unencrypted PEM-encoded key file corresponding to B. -=item B I +=item B I If configured, this specifies the string protocol version (e.g. tlsv1, tlsv1.2) to use for the TLS connection to the broker. If not set a default version is used which diff --git a/src/mqtt.c b/src/mqtt.c index f8c1e0ef..cbffa67e 100644 --- a/src/mqtt.c +++ b/src/mqtt.c @@ -535,7 +535,7 @@ static int mqtt_write (const data_set_t *ds, const value_list_t *vl, * CACert "ca.pem" Enables TLS if set * CertificateFile "client-cert.pem" optional * CertificateKeyFile "client-key.pem" optional - * TLSprotocol "tlsv1.2" optional + * TLSProtocol "tlsv1.2" optional * */ static int mqtt_config_publisher (oconfig_item_t *ci) @@ -618,7 +618,7 @@ static int mqtt_config_publisher (oconfig_item_t *ci) cf_util_get_string (child, &conf->certificatefile); else if (strcasecmp ("CertificateKeyFile", child->key) == 0) cf_util_get_string (child, &conf->certificatekeyfile); - else if (strcasecmp ("TLSprotocol", child->key) == 0) + else if (strcasecmp ("TLSProtocol", child->key) == 0) cf_util_get_string (child, &conf->tlsprotocol); else if (strcasecmp ("CipherSuite", child->key) == 0) cf_util_get_string (child, &conf->ciphersuite);