diff options
author | Andrew Shadura <andrewsh@debian.org> | 2015-11-01 19:41:28 +0100 |
---|---|---|
committer | Andrew Shadura <andrewsh@debian.org> | 2015-11-01 19:41:28 +0100 |
commit | 61c1a106bd81794f48e4cd85bae129f9270279e8 (patch) | |
tree | 29ecf644c4a13c2645bd8067e66ae8944dd2daf9 /libdigidoc/pkcs11/cryptoki.h |
libdigidoc (3.10.1.1208-1) unstable; urgency=medium
* Initial upload (Closes: #658300).
# imported from the archive
Diffstat (limited to 'libdigidoc/pkcs11/cryptoki.h')
-rw-r--r-- | libdigidoc/pkcs11/cryptoki.h | 96 |
1 files changed, 96 insertions, 0 deletions
diff --git a/libdigidoc/pkcs11/cryptoki.h b/libdigidoc/pkcs11/cryptoki.h new file mode 100644 index 0000000..1c2b975 --- /dev/null +++ b/libdigidoc/pkcs11/cryptoki.h @@ -0,0 +1,96 @@ +/* cryptoki.h include file for PKCS #11. 2001 June 25 */
+
+
+
+/* This is a sample file containing the top level include directives
+
+ * for building Win32 Cryptoki libraries and applications.
+
+ */
+
+
+
+#ifndef ___CRYPTOKI_H_INC___
+
+#define ___CRYPTOKI_H_INC___
+
+
+
+#pragma pack(push, cryptoki, 1)
+
+
+
+/* Specifies that the function is a DLL entry point. */
+
+#define CK_IMPORT_SPEC __declspec(dllimport)
+
+
+
+/* Define CRYPTOKI_EXPORTS during the build of cryptoki libraries. Do
+
+ * not define it in applications.
+
+ */
+
+#ifdef CRYPTOKI_EXPORTS
+
+/* Specified that the function is an exported DLL entry point. */
+
+#define CK_EXPORT_SPEC __declspec(dllexport)
+
+#else
+
+#define CK_EXPORT_SPEC CK_IMPORT_SPEC
+
+#endif
+
+
+
+/* Ensures the calling convention for Win32 builds */
+
+#define CK_CALL_SPEC __cdecl
+
+
+
+#define CK_PTR *
+
+
+
+#define CK_DEFINE_FUNCTION(returnType, name) \
+ returnType CK_EXPORT_SPEC CK_CALL_SPEC name
+
+
+
+#define CK_DECLARE_FUNCTION(returnType, name) \
+ returnType CK_EXPORT_SPEC CK_CALL_SPEC name
+
+
+
+#define CK_DECLARE_FUNCTION_POINTER(returnType, name) \
+ returnType CK_IMPORT_SPEC (CK_CALL_SPEC CK_PTR name)
+
+
+
+#define CK_CALLBACK_FUNCTION(returnType, name) \
+ returnType (CK_CALL_SPEC CK_PTR name)
+
+
+
+#ifndef NULL_PTR
+
+#define NULL_PTR 0
+
+#endif
+
+
+
+#include "pkcs11.h"
+
+
+
+#pragma pack(pop, cryptoki)
+
+
+
+#endif /* ___CRYPTOKI_H_INC___ */
+
|