 |
AlexaClientSDK
1.26.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
Go to the documentation of this file.
16 #ifndef ACSDKPKCS11_PRIVATE_PKCS11FUNCTIONS_H_
17 #define ACSDKPKCS11_PRIVATE_PKCS11FUNCTIONS_H_
24 #ifndef WIN32_LEAN_AND_MEAN
25 #define WIN32_LEAN_AND_MEAN
33 namespace acsdkPkcs11 {
54 static std::shared_ptr<PKCS11Functions>
create(
const std::string& libpath) noexcept;
69 bool listSlots(
bool tokenPresent, std::vector<std::shared_ptr<PKCS11Slot>>& slots) noexcept;
79 bool findSlotByTokenName(
const std::string& tokenName, std::shared_ptr<PKCS11Slot>& slot) noexcept;
95 bool initialize() noexcept;
103 bool loadLibraryAndGetFunctions(const
std::
string& libpath) noexcept;
108 void finalizeOperations() noexcept;
113 void unloadLibrary() noexcept;
116 HMODULE m_libraryHandle;
119 void* m_libraryHandle;
122 CK_FUNCTION_LIST* m_pkcs11Functions;
129 #endif // ACSDKPKCS11_PRIVATE_PKCS11FUNCTIONS_H_
PKCS11 session wrapper.
Definition: PKCS11Session.h:38
PKCS11 API Wrapper.
Definition: PKCS11Functions.h:47
PKCS11 slot wrapper.
Definition: PKCS11Slot.h:36
bool listSlots(bool tokenPresent, std::vector< std::shared_ptr< PKCS11Slot >> &slots) noexcept
Lists available PKCS11 slots by type.
Definition: PKCS11Functions.cpp:72
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
Definition: CapabilityConfiguration.h:190
PKCS11 key object wrapper.
Definition: PKCS11Key.h:38
friend class PKCS11Token
Definition: PKCS11Functions.h:84
static std::shared_ptr< PKCS11Functions > create(const std::string &libpath) noexcept
Definition: PKCS11Functions.cpp:27
virtual ~PKCS11Functions() noexcept
Releases library.
Definition: PKCS11Functions.cpp:44
bool findSlotByTokenName(const std::string &tokenName, std::shared_ptr< PKCS11Slot > &slot) noexcept
Finds PKCS11 slot by name.
Definition: PKCS11Functions.cpp:108
AlexaClientSDK 1.26.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Licensed under the Apache License, Version 2.0