ednsoptions.cc ednsoptions.hh \
ednssubnet.cc \
gss_context.cc gss_context.hh \
- ipcrypt.cc ipcrypt.hh ../ext/ipcrypt/ipcrypt.c ../ext/ipcrypt/ipcrypt.h \
+ ipcipher.cc ipcipher.hh ../ext/ipcrypt/ipcrypt.c ../ext/ipcrypt/ipcrypt.h \
iputils.cc iputils.hh \
json.cc \
logger.cc \
ednssubnet.cc \
gettime.cc gettime.hh \
gss_context.cc gss_context.hh \
- ipcrypt.cc ipcrypt.hh ../ext/ipcrypt/ipcrypt.c ../ext/ipcrypt/ipcrypt.h \
+ ipcipher.cc ipcipher.hh ../ext/ipcrypt/ipcrypt.c ../ext/ipcrypt/ipcrypt.h \
iputils.cc \
ixfr.cc ixfr.hh \
logger.cc \
#include "dolog.hh"
#include "fstrm_logger.hh"
#include "remote_logger.hh"
-#include "ipcrypt.hh"
+#include "ipcipher.hh"
void setupLuaBindings(bool client)
{
if HAVE_LIBSSL
dnsdist_LDADD += $(LIBSSL_LIBS) $(LIBCRYPTO_LIBS)
-dnsdist_SOURCES += ipcrypt.cc ipcrypt.hh ext/ipcrypt/ipcrypt.c ext/ipcrypt/ipcrypt.h
+dnsdist_SOURCES += ipcipher.cc ipcipher.hh ext/ipcrypt/ipcrypt.c ext/ipcrypt/ipcrypt.h
endif
if !HAVE_LUA_HPP
--- /dev/null
+../ipcipher.cc
\ No newline at end of file
--- /dev/null
+../ipcipher.hh
\ No newline at end of file
+++ /dev/null
-../ipcrypt.cc
\ No newline at end of file
+++ /dev/null
-../ipcrypt.hh
\ No newline at end of file
-#include "ipcrypt.hh"
+#include "ipcipher.hh"
#include "ext/ipcrypt/ipcrypt.h"
#include <openssl/aes.h>
#include <openssl/evp.h>
const unsigned char *salt, int saltlen, int iter,
int keylen, unsigned char *out);
*/
-std::string makeIPCryptKey(const std::string& password)
+std::string makeIPCipherKey(const std::string& password)
{
static const char* salt="ipcryptipcrypt";
unsigned char out[16];
#include "iputils.hh"
#include <string>
+// see https://powerdns.org/ipcipher
+
ComboAddress encryptCA(const ComboAddress& ca, const std::string& key);
ComboAddress decryptCA(const ComboAddress& ca, const std::string& key);
-std::string makeIPCryptKey(const std::string& password);
+std::string makeIPCipherKey(const std::string& password);
#include "zoneparser-tng.hh"
#include "signingpipe.hh"
#include "dns_random.hh"
-#include "ipcrypt.hh"
+#include "ipcipher.hh"
#include <fstream>
#include <termios.h> //termios, TCSANOW, ECHO, ICANON
#include "opensslsigners.hh"
static int xcryptIP(const std::string& cmd, const std::string& ip, const std::string& key)
{
- string rkey = makeIPCryptKey(key);
+ string rkey = makeIPCipherKey(key);
ComboAddress ca(ip), ret;
if(cmd=="ipencrypt")