Skip to content

Commit

Permalink
* tests/libtest.c (wget_test_start_server): Print MHD info
Browse files Browse the repository at this point in the history
  • Loading branch information
rockdaboot committed Oct 29, 2019
1 parent 53d3092 commit 45349f5
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions tests/libtest.c
Original file line number Diff line number Diff line change
Expand Up @@ -1146,6 +1146,29 @@ void wget_test_start_server(int first_key, ...)
WGET_INFO_FUNC, _write_msg,
0);

wget_debug_printf("MHD compiled with 0x%08x, linked with %s\n", (unsigned) MHD_VERSION, MHD_get_version());
#if MHD_VERSION >= 0x00095400
wget_debug_printf("MHD_OPTION_STRICT_FOR_CLIENT: yes\n");
#else
wget_debug_printf("MHD_OPTION_STRICT_FOR_CLIENT: no\n");
#endif
#if MHD_VERSION >= 0x00096800
wget_debug_printf("MHD_OPTION_SERVER_INSANITY: yes\n");
#else
wget_debug_printf("MHD_OPTION_SERVER_INSANITY: no\n");
#endif
#ifdef HAVE_MICROHTTPD_HTTP2_H
wget_debug_printf("HAVE_MICROHTTPD_HTTP2_H: yes\n");
#else
wget_debug_printf("HAVE_MICROHTTPD_HTTP2_H: no\n");
#endif
#ifdef HAVE_GNUTLS_OCSP_H
wget_debug_printf("HAVE_GNUTLS_OCSP_H: yes\n");
#else
wget_debug_printf("HAVE_GNUTLS_OCSP_H: no\n");
#endif
wget_debug_printf("\n");

va_start(args, first_key);
for (key = first_key; key; key = va_arg(args, int)) {
switch (key) {
Expand Down

0 comments on commit 45349f5

Please sign in to comment.