9#include <botan/p11_types.h>
17 m_module.get()->C_GetSlotInfo(m_slot_id, &slot_info);
22 std::vector<MechanismType> mechanism_list;
23 m_module.get()->C_GetMechanismList(m_slot_id, mechanism_list);
24 return mechanism_list;
29 m_module.get()->C_GetMechanismInfo(m_slot_id, mechanism_type, &mechanism_info);
30 return mechanism_info;
34 std::vector<SlotId> slot_vec;
35 module->C_GetSlotList(token_present, slot_vec);
41 m_module.get()->C_GetTokenInfo(m_slot_id, &token_info);
46 m_module.get()->C_InitToken(m_slot_id, so_pin, label);
MechanismInfo get_mechanism_info(MechanismType mechanism_type) const
Obtains information about a particular mechanism possibly supported by a slot (C_GetMechanismInfo)
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)
void initialize(std::string_view label, const secure_string &so_pin) const
secure_vector< uint8_t > secure_string