source: lab.git/Dev/utvpn/utvpn-unix-v101-7101-public/src/Mayaqua/cryptoki.h @ 072e48b

trunk
Last change on this file since 072e48b was a1bae3e, checked in by mitty <mitty@…>, 12 years ago
  • copy vendor drop to trunk

git-svn-id: https://lab.mitty.jp/svn/lab/trunk@147 7d2118f6-f56c-43e7-95a2-4bb3031d96e7

  • Property mode set to 100644
File size: 2.1 KB
RevLine 
[a1bae3e]1/* cryptoki.h include file for PKCS #11. */
2/* $Revision: 1.4 $ */
3
4/* License to copy and use this software is granted provided that it is
5 * identified as "RSA Security Inc. PKCS #11 Cryptographic Token Interface
6 * (Cryptoki)" in all material mentioning or referencing this software.
7
8 * License is also granted to make and use derivative works provided that
9 * such works are identified as "derived from the RSA Security Inc. PKCS #11
10 * Cryptographic Token Interface (Cryptoki)" in all material mentioning or
11 * referencing the derived work.
12
13 * RSA Security Inc. makes no representations concerning either the
14 * merchantability of this software or the suitability of this software for
15 * any particular purpose. It is provided "as is" without express or implied
16 * warranty of any kind.
17 */
18
19/* This is a sample file containing the top level include directives
20 * for building Win32 Cryptoki libraries and applications.
21 */
22
23#ifndef ___CRYPTOKI_H_INC___
24#define ___CRYPTOKI_H_INC___
25
26#pragma pack(push, cryptoki, 1)
27
28/* Specifies that the function is a DLL entry point. */
29#define CK_IMPORT_SPEC __declspec(dllimport)
30
31/* Define CRYPTOKI_EXPORTS during the build of cryptoki libraries. Do
32 * not define it in applications.
33 */
34#ifdef CRYPTOKI_EXPORTS
35/* Specified that the function is an exported DLL entry point. */
36#define CK_EXPORT_SPEC __declspec(dllexport)
37#else
38#define CK_EXPORT_SPEC CK_IMPORT_SPEC
39#endif
40
41/* Ensures the calling convention for Win32 builds */
42#define CK_CALL_SPEC __cdecl
43
44#define CK_PTR *
45
46#define CK_DEFINE_FUNCTION(returnType, name) \
47  returnType CK_EXPORT_SPEC CK_CALL_SPEC name
48
49#define CK_DECLARE_FUNCTION(returnType, name) \
50  returnType CK_EXPORT_SPEC CK_CALL_SPEC name
51
52#define CK_DECLARE_FUNCTION_POINTER(returnType, name) \
53  returnType CK_IMPORT_SPEC (CK_CALL_SPEC CK_PTR name)
54
55#define CK_CALLBACK_FUNCTION(returnType, name) \
56  returnType (CK_CALL_SPEC CK_PTR name)
57
58#ifndef NULL_PTR
59#define NULL_PTR 0
60#endif
61
62#include "pkcs11.h"
63
64#pragma pack(pop, cryptoki)
65
66#endif /* ___CRYPTOKI_H_INC___ */
Note: See TracBrowser for help on using the repository browser.