aboutsummaryrefslogtreecommitdiff
path: root/src/testcurl/https
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2018-06-22 15:16:11 +0200
committerChristian Grothoff <christian@grothoff.org>2018-06-22 15:16:11 +0200
commit832739556b765571f80520b91bdad5f14f6aa1b4 (patch)
tree79a7bf9a1c523466a3919a3c862426f17369a924 /src/testcurl/https
parent65a322cfe842d6028a0b27bc114b34ea178903eb (diff)
downloadlibmicrohttpd-832739556b765571f80520b91bdad5f14f6aa1b4.tar.gz
libmicrohttpd-832739556b765571f80520b91bdad5f14f6aa1b4.zip
some minor code cleaning issues
Diffstat (limited to 'src/testcurl/https')
-rw-r--r--src/testcurl/https/test_tls_authentication.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/testcurl/https/test_tls_authentication.c b/src/testcurl/https/test_tls_authentication.c
index 7a6cd9a4..2ed8f14c 100644
--- a/src/testcurl/https/test_tls_authentication.c
+++ b/src/testcurl/https/test_tls_authentication.c
@@ -86,7 +86,9 @@ main (int argc, char *const *argv)
86{ 86{
87 unsigned int errorCount = 0; 87 unsigned int errorCount = 0;
88 char *aes256_sha = "AES256-SHA"; 88 char *aes256_sha = "AES256-SHA";
89 (void)argc; (void)argv; /* Unused. Silent compiler warning. */ 89 FILE *crt;
90 (void)argc;
91 (void)argv; /* Unused. Silent compiler warning. */
90 92
91#ifdef MHD_HTTPS_REQUIRE_GRYPT 93#ifdef MHD_HTTPS_REQUIRE_GRYPT
92 gcry_control (GCRYCTL_ENABLE_QUICK_RANDOM, 0); 94 gcry_control (GCRYCTL_ENABLE_QUICK_RANDOM, 0);
@@ -103,13 +105,13 @@ main (int argc, char *const *argv)
103 return 77; 105 return 77;
104 } 106 }
105 107
106 if (setup_ca_cert () == NULL) 108 if (NULL == (crt = setup_ca_cert ()))
107 { 109 {
108 fprintf (stderr, MHD_E_TEST_FILE_CREAT); 110 fprintf (stderr, MHD_E_TEST_FILE_CREAT);
109 curl_global_cleanup (); 111 curl_global_cleanup ();
110 return 99; 112 return 99;
111 } 113 }
112 114 fclose (crt);
113 if (curl_uses_nss_ssl() == 0) 115 if (curl_uses_nss_ssl() == 0)
114 { 116 {
115 aes256_sha = "rsa_aes_256_sha"; 117 aes256_sha = "rsa_aes_256_sha";