aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-07-15 12:15:11 +0000
committerChristian Grothoff <christian@grothoff.org>2015-07-15 12:15:11 +0000
commitb118d605ac47c802bd4737476c7d76318c30980e (patch)
tree866562ab340b1a5913739db10d62c809f0f6323c /src
parentabdc3ae6fc830ec6968b525f3e60c93900a3d068 (diff)
downloadlibmicrohttpd-b118d605ac47c802bd4737476c7d76318c30980e.tar.gz
libmicrohttpd-b118d605ac47c802bd4737476c7d76318c30980e.zip
fix #3893 - thanks matwey
Diffstat (limited to 'src')
-rw-r--r--src/testcurl/https/test_https_session_info.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/testcurl/https/test_https_session_info.c b/src/testcurl/https/test_https_session_info.c
index adefb0b0..97be81af 100644
--- a/src/testcurl/https/test_https_session_info.c
+++ b/src/testcurl/https/test_https_session_info.c
@@ -90,6 +90,7 @@ query_session_ahc (void *cls, struct MHD_Connection *connection,
90/** 90/**
91 * negotiate a secure connection with server & query negotiated security parameters 91 * negotiate a secure connection with server & query negotiated security parameters
92 */ 92 */
93#if LIBCURL_VERSION_NUM >= 0x072200
93static int 94static int
94test_query_session () 95test_query_session ()
95{ 96{
@@ -161,7 +162,7 @@ test_query_session ()
161 free (cbc.buf); 162 free (cbc.buf);
162 return 0; 163 return 0;
163} 164}
164 165#endif
165 166
166int 167int
167main (int argc, char *const *argv) 168main (int argc, char *const *argv)
@@ -177,7 +178,9 @@ main (int argc, char *const *argv)
177 fprintf (stderr, "Error (code: %u)\n", errorCount); 178 fprintf (stderr, "Error (code: %u)\n", errorCount);
178 return -1; 179 return -1;
179 } 180 }
181#if LIBCURL_VERSION_NUM >= 0x072200
180 errorCount += test_query_session (); 182 errorCount += test_query_session ();
183#endif
181 print_test_result (errorCount, argv[0]); 184 print_test_result (errorCount, argv[0]);
182 curl_global_cleanup (); 185 curl_global_cleanup ();
183 if (errorCount > 0) 186 if (errorCount > 0)