From: bert hubert Date: Thu, 15 Feb 2018 13:03:58 +0000 (+0100) Subject: hook up makeIPCipherKey in dnsdist X-Git-Tag: dnsdist-1.4.0-alpha1~27^2~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=01223eb90944ba914612f8af041d5023b5901fb3;p=thirdparty%2Fpdns.git hook up makeIPCipherKey in dnsdist --- diff --git a/pdns/dnsdist-lua-bindings.cc b/pdns/dnsdist-lua-bindings.cc index 5cf15d153f..bfb5b85fc1 100644 --- a/pdns/dnsdist-lua-bindings.cc +++ b/pdns/dnsdist-lua-bindings.cc @@ -173,6 +173,10 @@ void setupLuaBindings(bool client) g_lua.registerFunction("ipdecrypt", [](const ComboAddress& ca, const std::string& key) { return decryptCA(ca, key); }); + + g_lua.writeFunction("makeIPCipherKey", [](const std::string& password) { + return makeIPCipherKey(password); + }); /* DNSName */ g_lua.registerFunction("isPartOf", &DNSName::isPartOf);