Closes https://github.com/curl/curl/pull/4692
}
-#ifdef USE_NGHTTP2
+#ifndef CURL_DISABLE_DOH
#define DNS_PREAMBLE "\x00\x00\x01\x00\x00\x01\x00\x00\x00\x00\x00\x00"
#define LABEL_TEST "\x04\x74\x65\x73\x74"
#define LABEL_HOST "\x04\x68\x6f\x73\x74"
}
UNITTEST_STOP
-#else /* USE_NGHTTP2 */
+#else /* CURL_DISABLE_DOH */
UNITTEST_START
{
return 1; /* nothing to do, just fail */
/* done before shutting down and exiting */
}
+#ifndef CURL_DISABLE_DOH
+
UNITTEST_START
/*
fail_unless(olen == olen1, "bad buffer length");
} while(0);
UNITTEST_STOP
+
+#else /* CURL_DISABLE_DOH */
+
+UNITTEST_START
+{
+ return 1; /* nothing to do, just fail */
+}
+UNITTEST_STOP
+
+#endif