aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-10-10 09:00:16 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-10-10 13:45:35 +0300
commit749a8b434cdad1af2ff0aa1236cab59bbbac3642 (patch)
tree2655326e0c651cdec3fa9bdd21d24c5f0738781a
parent288b02ad91430247534a81e17812864fd355010a (diff)
downloadlibmicrohttpd-749a8b434cdad1af2ff0aa1236cab59bbbac3642.tar.gz
libmicrohttpd-749a8b434cdad1af2ff0aa1236cab59bbbac3642.zip
tls_test_common: fixed comments and error messages
-rw-r--r--src/testcurl/https/tls_test_common.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/testcurl/https/tls_test_common.c b/src/testcurl/https/tls_test_common.c
index fba9068a..d2c7b14e 100644
--- a/src/testcurl/https/tls_test_common.c
+++ b/src/testcurl/https/tls_test_common.c
@@ -146,7 +146,7 @@ test_daemon_get (void *cls,
146 146
147 if (memcmp (cbc.buf, test_data, len) != 0) 147 if (memcmp (cbc.buf, test_data, len) != 0)
148 { 148 {
149 fprintf (stderr, "Error: local file & received file differ.\n"); 149 fprintf (stderr, "Error: local data & received data differ.\n");
150 free (cbc.buf); 150 free (cbc.buf);
151 return 1; 151 return 1;
152 } 152 }
@@ -359,7 +359,7 @@ gen_test_uri (char *uri,
359 359
360 360
361/** 361/**
362 * test HTTPS file transfer 362 * test HTTPS data transfer
363 */ 363 */
364unsigned int 364unsigned int
365test_https_transfer (void *cls, 365test_https_transfer (void *cls,
@@ -397,13 +397,13 @@ test_https_transfer (void *cls,
397 goto cleanup; 397 goto cleanup;
398 } 398 }
399 399
400 /* compare test file & daemon response */ 400 /* compare test data & daemon response */
401 if ( (len != strlen (test_data)) || 401 if ( (len != strlen (test_data)) ||
402 (memcmp (cbc.buf, 402 (memcmp (cbc.buf,
403 test_data, 403 test_data,
404 len) != 0) ) 404 len) != 0) )
405 { 405 {
406 fprintf (stderr, "Error: local file & received file differ.\n"); 406 fprintf (stderr, "Error: original data & received data differ.\n");
407 ret = 1; 407 ret = 1;
408 } 408 }
409cleanup: 409cleanup: