Commit 83d5d9a0 authored by Ocean Wang's avatar Ocean Wang
Browse files

Copy the RRsig record to the RRset cache

parent e75ba8ce
......@@ -35,6 +35,8 @@ RRsetEntry::RRsetEntry(const isc::dns::RRset& rrset, const RRsetTrustLevel& leve
rrset_->addRdata(rdata_itor->getCurrent());
rdata_itor->next();
}
rrset_->addRRsig(rrset.getRRsig());
}
isc::dns::RRsetPtr
......
......@@ -231,8 +231,8 @@ public:
/// \brief Updates the owner name of the \c RRset.
///
/// \param name A reference to a \c RRTTL class object to be copied as the
/// new TTL.
/// \param name A reference to a \c Name class object to be copied as the
/// new name.
virtual void setName(const Name& name) = 0;
/// \brief Updates the TTL of the \c RRset.
......@@ -590,8 +590,8 @@ public:
/// internal copy of the \c name involves resource allocation and it
/// fails.
///
/// \param name A reference to a \c RRTTL class object to be copied as the
/// new TTL.
/// \param name A reference to a \c Name class object to be copied as the
/// new name.
virtual void setName(const Name& name);
/// \brief Updates the TTL of the \c RRset.
......@@ -722,7 +722,7 @@ public:
void removeRRsig() { rrsig_ = RRsetPtr(); }
/// \brief Return a pointer to this RRset's RRSIG RRset
RRsetPtr getRRsig() { return (rrsig_); }
RRsetPtr getRRsig() const { return (rrsig_); }
private:
RRsetPtr rrsig_;
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment