From aaff848cf8b7752c7549590637f1b7702e32221e Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Fri, 27 Nov 2015 10:04:35 +0100 Subject: [PATCH] mqtt plugin: Rename "TLSprotocol" to "TLSProtocol". --- src/collectd.conf.pod | 2 +- src/mqtt.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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); -- 2.30.2