AlexaClientSDK  1.26.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
PKCS11API.h
Go to the documentation of this file.
1 /*
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License").
5  * You may not use this file except in compliance with the License.
6  * A copy of the License is located at
7  *
8  * http://aws.amazon.com/apache2.0/
9  *
10  * or in the "license" file accompanying this file. This file is distributed
11  * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12  * express or implied. See the License for the specific language governing
13  * permissions and limitations under the License.
14  */
15 
16 #ifndef ACSDKPKCS11_PRIVATE_PKCS11API_H_
17 #define ACSDKPKCS11_PRIVATE_PKCS11API_H_
18 
21 
22 // Define platform-specific macros for PKCS#11 API (UNIX)
23 #define CK_PTR *
24 #define CK_DECLARE_FUNCTION(returnType, name) returnType name
25 #define CK_DECLARE_FUNCTION_POINTER(returnType, name) returnType(*name)
26 #define CK_CALLBACK_FUNCTION(returnType, name) returnType(*name)
27 #define NULL_PTR nullptr
28 
30 
31 #ifdef _WIN32
32 #pragma pack(push, cryptoki, 1)
33 #endif
34 
35 #include <pkcs11.h>
36 
37 #ifdef _WIN32
38 #pragma pack(pop, cryptoki)
39 #endif
40 
42 static constexpr CK_OBJECT_CLASS UNDEFINED_OBJECT_CLASS = static_cast<CK_OBJECT_CLASS>(-1);
43 
45 static constexpr CK_KEY_TYPE UNDEFINED_KEY_TYPE = static_cast<CK_KEY_TYPE>(-1);
46 
47 #endif // ACSDKPKCS11_PRIVATE_PKCS11API_H_
UNDEFINED_KEY_TYPE
static constexpr CK_KEY_TYPE UNDEFINED_KEY_TYPE
Constant for key type initialization.
Definition: PKCS11API.h:45
UNDEFINED_OBJECT_CLASS
static constexpr CK_OBJECT_CLASS UNDEFINED_OBJECT_CLASS
Constant for object class initialization.
Definition: PKCS11API.h:42

AlexaClientSDK 1.26.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0