#ifndef __CERTIFICATELIST_H__ #define __CERTIFICATELIST_H__ #include #include #include struct enum_certs_s; class SlotList; /* * Builds up and owns the structure returned by ENUM_CERTS */ class CertificateList { public: CertificateList(); ~CertificateList(); void init(SlotList& slots); inline enum_certs_s* getEnumList() { return m_enum_list; } private: struct cert_tmp_s { size_t slot_number; act::Blob id; std::string name; }; typedef std::map cert_map_t; void release_list(); int m_num_certs; // Copy of the number of certs embedded in the returned structure enum_certs_s* m_enum_list; }; #endif