OBS-URL: https://build.opensuse.org/request/show/316987 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libmicrohttpd?expand=0&rev=46
32 lines
963 B
Diff
32 lines
963 B
Diff
Index: libmicrohttpd-0.9.42/src/testcurl/https/test_https_session_info.c
|
|
===================================================================
|
|
--- libmicrohttpd-0.9.42.orig/src/testcurl/https/test_https_session_info.c
|
|
+++ libmicrohttpd-0.9.42/src/testcurl/https/test_https_session_info.c
|
|
@@ -90,6 +90,7 @@ query_session_ahc (void *cls, struct MHD
|
|
/**
|
|
* negotiate a secure connection with server & query negotiated security parameters
|
|
*/
|
|
+#if LIBCURL_VERSION_NUM >= 0x072200
|
|
static int
|
|
test_query_session ()
|
|
{
|
|
@@ -161,7 +162,7 @@ test_query_session ()
|
|
free (cbc.buf);
|
|
return 0;
|
|
}
|
|
-
|
|
+#endif
|
|
|
|
int
|
|
main (int argc, char *const *argv)
|
|
@@ -177,7 +178,9 @@ main (int argc, char *const *argv)
|
|
fprintf (stderr, "Error (code: %u)\n", errorCount);
|
|
return -1;
|
|
}
|
|
+#if LIBCURL_VERSION_NUM >= 0x072200
|
|
errorCount += test_query_session ();
|
|
+#endif
|
|
print_test_result (errorCount, argv[0]);
|
|
curl_global_cleanup ();
|
|
if (errorCount > 0)
|