summaryrefslogtreecommitdiffstats
path: root/exporting/opentsdb/opentsdb.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2023-06-14 19:20:33 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2023-06-14 19:20:33 +0000
commit6cf8f2d5174a53f582e61d715edbb88d6e3367cc (patch)
tree78cec0fd8d09c4a6a052461d42f4b2be3af6d396 /exporting/opentsdb/opentsdb.c
parentAdding upstream version 1.39.1. (diff)
downloadnetdata-6cf8f2d5174a53f582e61d715edbb88d6e3367cc.tar.xz
netdata-6cf8f2d5174a53f582e61d715edbb88d6e3367cc.zip
Adding upstream version 1.40.0.upstream/1.40.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'exporting/opentsdb/opentsdb.c')
-rw-r--r--exporting/opentsdb/opentsdb.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/exporting/opentsdb/opentsdb.c b/exporting/opentsdb/opentsdb.c
index fc01ae461..0248469fa 100644
--- a/exporting/opentsdb/opentsdb.c
+++ b/exporting/opentsdb/opentsdb.c
@@ -21,10 +21,9 @@ int init_opentsdb_telnet_instance(struct instance *instance)
instance->connector_specific_data = connector_specific_data;
#ifdef ENABLE_HTTPS
- connector_specific_data->flags = NETDATA_SSL_START;
- connector_specific_data->conn = NULL;
+ connector_specific_data->ssl = NETDATA_SSL_UNSET_CONNECTION;
if (instance->config.options & EXPORTING_OPTION_USE_TLS) {
- security_start_ssl(NETDATA_SSL_CONTEXT_EXPORTING);
+ netdata_ssl_initialize_ctx(NETDATA_SSL_EXPORTING_CTX);
}
#endif
@@ -77,10 +76,9 @@ int init_opentsdb_http_instance(struct instance *instance)
struct simple_connector_data *connector_specific_data = callocz(1, sizeof(struct simple_connector_data));
#ifdef ENABLE_HTTPS
- connector_specific_data->flags = NETDATA_SSL_START;
- connector_specific_data->conn = NULL;
+ connector_specific_data->ssl = NETDATA_SSL_UNSET_CONNECTION;
if (instance->config.options & EXPORTING_OPTION_USE_TLS) {
- security_start_ssl(NETDATA_SSL_CONTEXT_EXPORTING);
+ netdata_ssl_initialize_ctx(NETDATA_SSL_EXPORTING_CTX);
}
#endif
instance->connector_specific_data = connector_specific_data;