]> granicus.if.org Git - pdns/commitdiff
add documentation to dnsdist
authorbert hubert <bert.hubert@netherlabs.nl>
Fri, 2 Feb 2018 12:39:28 +0000 (13:39 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 25 Mar 2019 09:22:40 +0000 (10:22 +0100)
pdns/dnsdistdist/docs/reference/comboaddress.rst
pdns/test-ipcrypt_cc.cc

index b32b427795e512d2e686c98cf2bfa1ea60cabad5..fc2a60b4f1890d607b24bdd8290e5f3545fc7f66 100644 (file)
@@ -22,6 +22,18 @@ ComboAddresses can be IPv4 or IPv6, and unless you want to know, you don't need
 
     Returns the port number.
 
+  .. method:: ComboAddress:ipdecrypt(key) -> ComboAddress
+
+    Decrypt this IP address as described in https://medium.com/@bert.hubert/on-ip-address-encryption-security-analysis-with-respect-for-privacy-dabe1201b476
+
+    :param string key: A 16 byte key
+
+  .. method:: ComboAddress:ipencrypt(key) -> ComboAddress
+
+    Encrypt this IP address as described in https://medium.com/@bert.hubert/on-ip-address-encryption-security-analysis-with-respect-for-privacy-dabe1201b476
+    
+    :param string key: A 16 byte key
+  
   .. method:: ComboAddress:isIPv4() -> bool
 
     Returns true if the address is an IPv4, false otherwise
index b394997edb336f8d975fc6da91dbefd06d067758..dd2d072362bc761731cc2d44c18ecd5120f423bb 100644 (file)
@@ -37,6 +37,7 @@ BOOST_AUTO_TEST_CASE(test_ipcrypt4_vector)
     BOOST_CHECK_EQUAL(decrypted.toString(), p.first);
   }
 
+  // test from Frank Denis' test.cc
   ComboAddress ip("192.168.69.42"), out, dec;
   string key2;
   for(int n=0; n<16; ++n)