1 // { dg-skip-if "requires hosted libstdc++ for vector" { ! hostedlib } }
4 typedef unsigned short uint16;
10 typedef std::size_t size_type;
11 size_type size() const { return length_; }
19 bool CheckSignature (const base::StringPiece& name, const
20 base::StringPiece& zone, const
21 base::StringPiece& signature, uint16 rrtype,
22 const std::vector<base::StringPiece>& rrdatas);
26 template <class C> class scoped_array
28 public: typedef C element_type;
29 explicit scoped_array(C* p = __null):array_(p) {}
34 bool DNSSECKeySet::CheckSignature (const base::StringPiece& name,
35 const base::StringPiece& zone, const base::StringPiece& signature,
36 uint16 rrtype, const std::vector<base::StringPiece>& rrdatas)
38 unsigned signed_data_len = 0;
39 for (std::vector<base::StringPiece>::const_iterator i =
41 i != rrdatas.end(); i++) {
43 signed_data_len += i->size();
45 scoped_array<unsigned char> signed_data(new unsigned
46 char[signed_data_len]);