projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #2681 from elfiesmelfie/feat_pmu_cores
[collectd.git]
/
src
/
libcollectdclient
/
network_parse_test.c
diff --git
a/src/libcollectdclient/network_parse_test.c
b/src/libcollectdclient/network_parse_test.c
index
9efd4bd
..
07010fb
100644
(file)
--- a/
src/libcollectdclient/network_parse_test.c
+++ b/
src/libcollectdclient/network_parse_test.c
@@
-412,6
+412,7
@@
static int test_parse_values() {
return ret;
}
return ret;
}
+#if HAVE_GCRYPT_H
static int test_verify_sha256() {
int ret = 0;
static int test_verify_sha256() {
int ret = 0;
@@
-441,7
+442,9
@@
static int test_verify_sha256() {
return ret;
}
return ret;
}
+#endif
+#if HAVE_GCRYPT_H
static int test_decrypt_aes256() {
char const *iv_str = "4cbe2a747c9f9dcfa0e66f0c2fa74875";
uint8_t iv[16] = {0};
static int test_decrypt_aes256() {
char const *iv_str = "4cbe2a747c9f9dcfa0e66f0c2fa74875";
uint8_t iv[16] = {0};
@@
-480,12
+483,11
@@
static int test_decrypt_aes256() {
return 0;
}
return 0;
}
+#endif
int main(void) {
int ret = 0;
int main(void) {
int ret = 0;
- printf("libcollectdclient/server_test.c\n");
-
int status;
if ((status = test_network_parse())) {
ret = status;
int status;
if ((status = test_network_parse())) {
ret = status;
@@
-500,12
+502,14
@@
int main(void) {
ret = status;
}
ret = status;
}
+#if HAVE_GCRYPT_H
if ((status = test_verify_sha256())) {
ret = status;
}
if ((status = test_decrypt_aes256())) {
ret = status;
}
if ((status = test_verify_sha256())) {
ret = status;
}
if ((status = test_decrypt_aes256())) {
ret = status;
}
+#endif
return ret;
}
return ret;
}