3 P11Engine* P11EngineGuard::instance =
nullptr;
4 int P11EngineGuard::ref_counter = 0;
6 P11ContextWrapper::P11ContextWrapper(
const boost::filesystem::path& module) : ctx(nullptr) {
8 throw std::runtime_error(
"Aktualizr was built without PKCS#11");
11 P11ContextWrapper::~P11ContextWrapper() =
default;
13 P11SlotsWrapper::P11SlotsWrapper(PKCS11_ctx_st* ctx_in) : ctx(nullptr), wslots_(nullptr), nslots(0) {
15 throw std::runtime_error(
"Aktualizr was built without PKCS#11");
18 P11SlotsWrapper::~P11SlotsWrapper() =
default;