You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make digest auth support conditional (issue #232) (#357)
* Make digest auth support conditional (issue #232)
When libmicrohttpd is built with --disable-dauth, the digest auth
functions (MHD_digest_auth_get_username, MHD_digest_auth_check,
MHD_queue_auth_fail_response) are not available, causing linker errors.
This change detects digest auth availability at configure time and
conditionally compiles the digest auth code, following the existing
pattern used for GnuTLS support.
Changes:
- Add AC_CHECK_LIB detection for MHD_queue_auth_fail_response
- Add HAVE_DAUTH preprocessor flag when digest auth is available
- Wrap digest auth code in #ifdef HAVE_DAUTH guards
- Show digest auth status in configure summary
* Make digest_authentication example conditional (issue #232)
Build the digest_authentication example only when HAVE_DAUTH is defined,
consistent with the conditional digest auth support added in the library.
* Guard digest auth MHD options with HAVE_DAUTH (issue #232)
When libmicrohttpd is built with --disable-dauth, passing
MHD_OPTION_NONCE_NC_SIZE or MHD_OPTION_DIGEST_AUTH_RANDOM to
MHD_create_daemon() causes daemon creation to fail. This fixes
the ws_start_stop test failure in the no-dauth CI build.
0 commit comments