From: Bert Hubert Date: Mon, 3 Apr 2006 19:42:50 +0000 (+0000) Subject: implement rfc4255 X-Git-Tag: rec-3-0~104 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a40a693bea422ca4b7c4ecdd2fa76fad42914452;p=pdns implement rfc4255 git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@649 d19b8d6e-7fed-0310-83ef-9ca221ded41b --- diff --git a/pdns/dnsrecords.cc b/pdns/dnsrecords.cc index 2f9021cec..5c5fe324a 100644 --- a/pdns/dnsrecords.cc +++ b/pdns/dnsrecords.cc @@ -248,6 +248,13 @@ boilerplate_conv(DS, 43, conv.xfrBlob(d_digest); ) + +boilerplate_conv(SSHFP, 44, + conv.xfr8BitInt(d_algorithm); + conv.xfr8BitInt(d_fptype); + conv.xfrBlob(d_fingerprint); + ) + boilerplate_conv(RRSIG, 46, conv.xfrType(d_type); conv.xfr8BitInt(d_algorithm); diff --git a/pdns/dnsrecords.hh b/pdns/dnsrecords.hh index 7fa51ce20..ca87087cf 100644 --- a/pdns/dnsrecords.hh +++ b/pdns/dnsrecords.hh @@ -185,6 +185,15 @@ private: string d_digest; }; +class SSHFPRecordContent : public DNSRecordContent +{ +public: + includeboilerplate(SSHFP) + +private: + uint8_t d_algorithm, d_fptype; + string d_fingerprint; +}; class RRSIGRecordContent : public DNSRecordContent {