41 lines
688 B
C++
41 lines
688 B
C++
#ifndef __CERTIFICATELIST_H__
|
|
#define __CERTIFICATELIST_H__
|
|
|
|
#include <actBlob.h>
|
|
#include <map>
|
|
#include <string>
|
|
|
|
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<act::Blob, cert_tmp_s> 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
|
|
|