diff options
Diffstat (limited to 'src/testcurl/https/test_tls_authentication.c')
-rw-r--r-- | src/testcurl/https/test_tls_authentication.c | 8 |
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"; |