|
Botan
2.13.0
Crypto and TLS for C++11
|
Represents a PKCS#11 Slot, i.e., a card reader. More...
#include <p11_slot.h>
Public Member Functions | |
| MechanismInfo | get_mechanism_info (MechanismType mechanism_type) const |
Obtains information about a particular mechanism possibly supported by a slot (C_GetMechanismInfo) More... | |
| std::vector< MechanismType > | get_mechanism_list () const |
Obtains a list of mechanism types supported by the slot (C_GetMechanismList) More... | |
| SlotInfo | get_slot_info () const |
| TokenInfo | get_token_info () const |
Obtains information about a particular token in the system (C_GetTokenInfo) More... | |
| void | initialize (const std::string &label, const secure_string &so_pin) const |
| Module & | module () const |
| Slot (Module &module, SlotId slot_id) | |
| SlotId | slot_id () const |
Static Public Member Functions | |
| static std::vector< SlotId > | get_available_slots (Module &module, bool token_present) |
Represents a PKCS#11 Slot, i.e., a card reader.
Definition at line 22 of file p11_slot.h.
| module | the PKCS#11 module to use |
| slot_id | the slot id to use |
Definition at line 15 of file p11_slot.cpp.
|
static |
Get available slots
| module | the module to use |
| token_present | true if only slots with attached tokens should be returned, false for all slots |
Definition at line 40 of file p11_slot.cpp.
References Botan::PKCS11::LowLevel::C_GetSlotList().
| MechanismInfo Botan::PKCS11::Slot::get_mechanism_info | ( | MechanismType | mechanism_type | ) | const |
Obtains information about a particular mechanism possibly supported by a slot (C_GetMechanismInfo)
Definition at line 33 of file p11_slot.cpp.
| std::vector< MechanismType > Botan::PKCS11::Slot::get_mechanism_list | ( | ) | const |
Obtains a list of mechanism types supported by the slot (C_GetMechanismList)
Definition at line 26 of file p11_slot.cpp.
| SlotInfo Botan::PKCS11::Slot::get_slot_info | ( | ) | const |
| TokenInfo Botan::PKCS11::Slot::get_token_info | ( | ) | const |
Obtains information about a particular token in the system (C_GetTokenInfo)
Definition at line 47 of file p11_slot.cpp.
| void Botan::PKCS11::Slot::initialize | ( | const std::string & | label, |
| const secure_string & | so_pin | ||
| ) | const |
Calls C_InitToken to initialize the token
| label | the label for the token (must not exceed 32 bytes according to PKCS#11) |
| so_pin | the PIN of the security officer |
Definition at line 54 of file p11_slot.cpp.
Referenced by Botan::PKCS11::initialize_token().
|
inline |
Definition at line 32 of file p11_slot.h.
|
inline |
Definition at line 38 of file p11_slot.h.
Referenced by Botan::PKCS11::Session::Session().
1.8.9.1