AC_SUBST([FUZZER_LDFLAGS])
AM_CONDITIONAL([USE_FUZZER], [test "x$with_fuzzer" != "xno"])
+ AC_ARG_ENABLE(local-fuzzer,
+ AS_HELP_STRING([--enable-local-fuzzer=yes],
+ [Enable fuzzer aspects suitable only for local use (not for e.g. OSS-Fuzz) (default: no)]),
+ enable_local_fuzzer=$enableval,
+ enable_local_fuzzer=no)
+ AC_MSG_CHECKING([Whether to enable fuzzer aspects suitable only for local use (not for e.g. OSS-Fuzz)])
+ AC_MSG_RESULT([$enable_local_fuzzer])
+ AS_IF([test "$enable_local_fuzzer" = "yes"], [
+ AC_DEFINE(HAVE_LOCAL_FUZZER,, [Enable fuzzer aspects suitable only for local use (not for e.g. OSS-Fuzz)])
+ ])
])
AC_DEFUN([DC_DOVECOT],[
sasl_server_mech_register_xoauth2(server_inst,
&server_oauth2_funcs, &oauth2_set);
+#ifdef HAVE_LOCAL_FUZZER
struct sasl_server_winbind_settings winbind_set;
i_zero(&winbind_set);
winbind_set.helper_path = TEST_WINBIND_HELPER_PATH;
sasl_server_mech_register_winbind_ntlm(server_inst, &winbind_set);
-
+#endif
#ifdef HAVE_GSSAPI
struct sasl_server_gssapi_settings gssapi_set;
password_schemes_init();
dsasl_clients_init();
+#ifdef HAVE_LOCAL_FUZZER
dsasl_client_mech_ntlm_init_dummy();
+#endif
#ifdef HAVE_GSSAPI
dsasl_clients_init_gssapi();
#endif