Botan 3.6.1
Crypto and TLS for C&
|
Represents a PKCS#11 Slot, i.e., a card reader. More...
#include <p11_types.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 ) | |
std::vector< MechanismType > | get_mechanism_list () const |
Obtains a list of mechanism types supported by the slot (C_GetMechanismList ) | |
SlotInfo | get_slot_info () const |
TokenInfo | get_token_info () const |
Obtains information about a particular token in the system (C_GetTokenInfo ) | |
void | initialize (std::string_view 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 74 of file p11_types.h.
module | the PKCS#11 module to use |
slot_id | the slot id to use |
Definition at line 13 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 33 of file p11_slot.cpp.
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 27 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 21 of file p11_slot.cpp.
SlotInfo Botan::PKCS11::Slot::get_slot_info | ( | ) | const |
C_GetSlotInfo
) Definition at line 15 of file p11_slot.cpp.
TokenInfo Botan::PKCS11::Slot::get_token_info | ( | ) | const |
Obtains information about a particular token in the system (C_GetTokenInfo
)
Definition at line 39 of file p11_slot.cpp.
void Botan::PKCS11::Slot::initialize | ( | std::string_view | 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 45 of file p11_slot.cpp.
Referenced by Botan::PKCS11::initialize_token().
|
inline |
Definition at line 83 of file p11_types.h.
|
inline |
Definition at line 86 of file p11_types.h.
Referenced by Botan::PKCS11::Session::Session().