bool ignoreTLSConfigurationErrors = false;
if (getOptionalValue<bool>(vars, "ignoreTLSConfigurationErrors", ignoreTLSConfigurationErrors) > 0 && ignoreTLSConfigurationErrors) {
+#if defined(HAVE_LIBSSL)
// we are asked to try to load the certificates so we can return a potential error
// and properly ignore the frontend before actually launching it
try {
errlog("Ignoring DoH frontend: '%s'", e.what());
return;
}
+#endif /* HAVE_LIBSSL */
}
checkAllParametersConsumed("addDOHLocal", vars);
bool ignoreTLSConfigurationErrors = false;
if (getOptionalValue<bool>(vars, "ignoreTLSConfigurationErrors", ignoreTLSConfigurationErrors) > 0 && ignoreTLSConfigurationErrors) {
+#if defined(HAVE_LIBSSL)
// we are asked to try to load the certificates so we can return a potential error
// and properly ignore the frontend before actually launching it
try {
errlog("Ignoring DoH3 frontend: '%s'", e.what());
return;
}
+#endif /* HAVE_LIBSSL */
}
checkAllParametersConsumed("addDOH3Local", vars);
bool ignoreTLSConfigurationErrors = false;
if (getOptionalValue<bool>(vars, "ignoreTLSConfigurationErrors", ignoreTLSConfigurationErrors) > 0 && ignoreTLSConfigurationErrors) {
+#if defined(HAVE_LIBSSL)
// we are asked to try to load the certificates so we can return a potential error
// and properly ignore the frontend before actually launching it
try {
errlog("Ignoring DoQ frontend: '%s'", e.what());
return;
}
+#endif /* HAVE_LIBSSL */
}
checkAllParametersConsumed("addDOQLocal", vars);