3 typedef unsigned short uint16;
9 typedef std::size_t size_type;
10 size_type size() const { return length_; }
18 bool CheckSignature (const base::StringPiece& name, const
19 base::StringPiece& zone, const
20 base::StringPiece& signature, uint16 rrtype,
21 const std::vector<base::StringPiece>& rrdatas);
25 template <class C> class scoped_array
27 public: typedef C element_type;
28 explicit scoped_array(C* p = __null):array_(p) {}
33 bool DNSSECKeySet::CheckSignature (const base::StringPiece& name,
34 const base::StringPiece& zone, const base::StringPiece& signature,
35 uint16 rrtype, const std::vector<base::StringPiece>& rrdatas)
37 unsigned signed_data_len = 0;
38 for (std::vector<base::StringPiece>::const_iterator i =
40 i != rrdatas.end(); i++) {
42 signed_data_len += i->size();
44 scoped_array<unsigned char> signed_data(new unsigned
45 char[signed_data_len]);