From: Remi Gacogne Date: Fri, 23 Mar 2018 17:58:57 +0000 (+0100) Subject: dnsdist: Build without DNSCrypt support X-Git-Tag: dnsdist-1.3.0~33^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F6382%2Fhead;p=thirdparty%2Fpdns.git dnsdist: Build without DNSCrypt support --- diff --git a/pdns/dnsdist-lua.cc b/pdns/dnsdist-lua.cc index 0e573f16d1..72d25d7df7 100644 --- a/pdns/dnsdist-lua.cc +++ b/pdns/dnsdist-lua.cc @@ -1029,9 +1029,9 @@ void setupLuaConfig(bool client) #endif }); +#ifdef HAVE_DNSCRYPT g_lua.writeFunction("generateDNSCryptCertificate", [](const std::string& providerPrivateKeyFile, const std::string& certificateFile, const std::string privateKeyFile, uint32_t serial, time_t begin, time_t end, boost::optional version) { setLuaNoSideEffect(); -#ifdef HAVE_DNSCRYPT DNSCryptPrivateKey privateKey; DNSCryptCert cert; @@ -1045,10 +1045,8 @@ void setupLuaConfig(bool client) errlog(e.what()); g_outputBuffer="Error: "+string(e.what())+"\n"; } -#else - g_outputBuffer="Error: DNSCrypt support is not enabled.\n"; -#endif }); +#endif g_lua.writeFunction("showPools", []() { setLuaNoSideEffect();