Botan 3.6.1
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 | |
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().
|
defaultnoexcept |
|
delete |
|
noexcept |
Calls C_Finalize()
Definition at line 24 of file p11_module.cpp.
|
inline |
Definition at line 60 of file p11_types.h.
|
inline |
Definition at line 57 of file p11_types.h.
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().