|
Botan 3.9.0
Crypto and TLS for C&
|
#include <p11_types.h>
Public Member Functions | |
| Info | get_info () const |
| Module (const Module &other)=delete | |
| Module (Module &&other) noexcept | |
| BOTAN_FUTURE_EXPLICIT | Module (std::string_view file_path, C_InitializeArgs init_args={ nullptr, nullptr, nullptr, nullptr, static_cast< CK_FLAGS >(Flag::OsLockingOk), nullptr}) |
| LowLevel * | operator-> () const |
| Module & | operator= (const Module &other)=delete |
| Module & | operator= (Module &&other)=delete |
| void | reload (C_InitializeArgs init_args={ nullptr, nullptr, nullptr, nullptr, static_cast< CK_FLAGS >(Flag::OsLockingOk), nullptr}) |
| ~Module () noexcept | |
| Calls C_Finalize() | |
Loads the PKCS#11 shared library Calls C_Initialize on load and C_Finalize on destruction
Definition at line 28 of file p11_types.h.
| Botan::PKCS11::Module::Module | ( | std::string_view | file_path, |
| C_InitializeArgs | init_args = { nullptr, nullptr, nullptr, nullptr, static_cast<CK_FLAGS>(Flag::OsLockingOk), nullptr} ) |
Loads the shared library and calls C_Initialize
| file_path | the path to the PKCS#11 shared library |
| init_args | flags to use for C_Initialize |
Definition at line 15 of file p11_module.cpp.
References reload().
Referenced by Module(), Module(), operator=(), and operator=().
|
noexcept |
Calls C_Finalize()
Definition at line 24 of file p11_module.cpp.
|
inline |
Definition at line 61 of file p11_types.h.
|
inline |
Definition at line 58 of file p11_types.h.
References Module(), Botan::PKCS11::OsLockingOk, and reload().
| void Botan::PKCS11::Module::reload | ( | C_InitializeArgs | init_args = { nullptr, nullptr, nullptr, nullptr, static_cast<CK_FLAGS>(Flag::OsLockingOk), nullptr} | ) |
Reloads the module and reinitializes it
| init_args | flags to use for C_Initialize |
Definition at line 32 of file p11_module.cpp.
References Botan::PKCS11::LowLevel::C_GetFunctionList().
Referenced by Module(), and operator=().