]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
hook up makeIPCipherKey in dnsdist
authorbert hubert <bert.hubert@powerdns.com>
Thu, 15 Feb 2018 13:03:58 +0000 (14:03 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 25 Mar 2019 09:22:40 +0000 (10:22 +0100)
pdns/dnsdist-lua-bindings.cc

index 5cf15d153f00792213bd44f16a2ebf62148707fa..bfb5b85fc1af817c0289bf91eae5eb8c3eed7dc2 100644 (file)
@@ -173,6 +173,10 @@ void setupLuaBindings(bool client)
   g_lua.registerFunction<ComboAddress(ComboAddress::*)(const std::string& key)>("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);