A simple Qt based browser with no bullshit that supports PKCS#11 tokens (such as the SuisseID).
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

40 lines
688 B

#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