Aktualizr
C++ SOTA Client
All Classes Namespaces Files Functions Variables Enumerations Enumerator Pages
p11engine_dummy.cc
1 #include "p11engine.h"
2 
3 P11Engine* P11EngineGuard::instance = nullptr;
4 int P11EngineGuard::ref_counter = 0;
5 
6 P11ContextWrapper::P11ContextWrapper(const boost::filesystem::path& module) : ctx(nullptr) {
7  (void)module;
8  throw std::runtime_error("Aktualizr was built without PKCS#11");
9 }
10 
11 P11ContextWrapper::~P11ContextWrapper() = default;
12 
13 P11SlotsWrapper::P11SlotsWrapper(PKCS11_ctx_st* ctx_in) : ctx(nullptr), wslots_(nullptr), nslots(0) {
14  (void)ctx_in;
15  throw std::runtime_error("Aktualizr was built without PKCS#11");
16 }
17 
18 P11SlotsWrapper::~P11SlotsWrapper() = default;
P11Engine
Definition: p11engine.h:43