[Pdns-dev] Update DANE/TLSA Support
    James Cloos 
    cloos at jhcloos.com
       
    Fri Jan  6 00:09:13 CET 2012
    
    
  
The recent drafts have renamed one of the uint8_t fields and added another.
Index: pdns/dnsrecords.hh
===================================================================
--- pdns/dnsrecords.hh	(revision 2328)
+++ pdns/dnsrecords.hh	(working copy)
@@ -310,7 +310,7 @@
   includeboilerplate(TLSA)
 
 private:
-  uint8_t d_certtype, d_hashtype;
+  uint8_t d_certusage, d_selector, d_matchtype;
   string d_cert;
 };
 
Index: pdns/dnsrecords.cc
===================================================================
--- pdns/dnsrecords.cc	(revision 2328)
+++ pdns/dnsrecords.cc	(working copy)
@@ -224,8 +224,9 @@
         	 )
 		 
 boilerplate_conv(TLSA, 65468, 
-        	 conv.xfr8BitInt(d_certtype); 
-        	 conv.xfr8BitInt(d_hashtype); 
+        	 conv.xfr8BitInt(d_certusage); 
+        	 conv.xfr8BitInt(d_selector); 
+        	 conv.xfr8BitInt(d_matchtype); 
         	 conv.xfrBlob(d_cert);
         	 )		 
 		 
-JimC
-- 
James Cloos <cloos at jhcloos.com>         OpenPGP: 1024D/ED7DAEA6
    
    
More information about the Pdns-dev
mailing list