diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2022-02-15 03:25:22 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2022-02-15 03:25:22 +0000 |
commit | 0ce692f2add209c6f5d449ee2be7af725f1813e8 (patch) | |
tree | 2af915c6ff875c3b0b4367c334032726d2d6839a /database/sqlite/sqlite_functions.c | |
parent | Adding upstream version 1.33.0. (diff) | |
download | netdata-0ce692f2add209c6f5d449ee2be7af725f1813e8.tar.xz netdata-0ce692f2add209c6f5d449ee2be7af725f1813e8.zip |
Adding upstream version 1.33.1.upstream/1.33.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'database/sqlite/sqlite_functions.c')
-rw-r--r-- | database/sqlite/sqlite_functions.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/database/sqlite/sqlite_functions.c b/database/sqlite/sqlite_functions.c index a0b8ac019..d5afdb6ee 100644 --- a/database/sqlite/sqlite_functions.c +++ b/database/sqlite/sqlite_functions.c @@ -1646,8 +1646,14 @@ int sql_store_chart_hash( return 1; } +/* + chart hashes are used for cloud communication. + if cloud is disabled or openssl is not available (which will prevent cloud connectivity) + skip hash calculations +*/ void compute_chart_hash(RRDSET *st) { +#if !defined DISABLE_CLOUD && defined ENABLE_HTTPS EVP_MD_CTX *evpctx; unsigned char hash_value[EVP_MAX_MD_SIZE]; unsigned int hash_len; @@ -1693,6 +1699,9 @@ void compute_chart_hash(RRDSET *st) st->module_name, st->priority, st->chart_type); +#else + UNUSED(st); +#endif return; } |