9#include <botan/p11_types.h>
16 : m_module(module), m_slot_id(slot_id)
22 m_module.get()->C_GetSlotInfo(m_slot_id, &slot_info);
28 std::vector<MechanismType> mechanism_list;
29 m_module.get()->C_GetMechanismList(m_slot_id, mechanism_list);
30 return mechanism_list;
36 m_module.get()->C_GetMechanismInfo(m_slot_id, mechanism_type, &mechanism_info);
37 return mechanism_info;
42 std::vector<SlotId> slot_vec;
50 m_module.get()->C_GetTokenInfo(m_slot_id, &token_info);
56 m_module.get()->C_InitToken(m_slot_id, so_pin, label);
bool C_GetSlotList(Bbool token_present, SlotId *slot_list_ptr, Ulong *count_ptr, ReturnValue *return_value=ThrowException) const
MechanismInfo get_mechanism_info(MechanismType mechanism_type) const
Obtains information about a particular mechanism possibly supported by a slot (C_GetMechanismInfo)
void initialize(const std::string &label, const secure_string &so_pin) const
SlotInfo get_slot_info() const
Slot(Module &module, SlotId slot_id)
std::vector< MechanismType > get_mechanism_list() const
Obtains a list of mechanism types supported by the slot (C_GetMechanismList)
TokenInfo get_token_info() const
Obtains information about a particular token in the system (C_GetTokenInfo)
static std::vector< SlotId > get_available_slots(Module &module, bool token_present)
secure_vector< uint8_t > secure_string