* tar xzf utvpn-src-unix-v101-7101-public-2010.06.27.tar.gz
[lab.git] / utvpn / utvpn-unix-v101-7101-public / src / Mayaqua / cryptoki.h
diff --git a/utvpn/utvpn-unix-v101-7101-public/src/Mayaqua/cryptoki.h b/utvpn/utvpn-unix-v101-7101-public/src/Mayaqua/cryptoki.h
new file mode 100644 (file)
index 0000000..7d85ca8
--- /dev/null
@@ -0,0 +1,66 @@
+/* cryptoki.h include file for PKCS #11. */\r
+/* $Revision: 1.4 $ */\r
+\r
+/* License to copy and use this software is granted provided that it is\r
+ * identified as "RSA Security Inc. PKCS #11 Cryptographic Token Interface\r
+ * (Cryptoki)" in all material mentioning or referencing this software.\r
+\r
+ * License is also granted to make and use derivative works provided that\r
+ * such works are identified as "derived from the RSA Security Inc. PKCS #11\r
+ * Cryptographic Token Interface (Cryptoki)" in all material mentioning or \r
+ * referencing the derived work.\r
+\r
+ * RSA Security Inc. makes no representations concerning either the \r
+ * merchantability of this software or the suitability of this software for\r
+ * any particular purpose. It is provided "as is" without express or implied\r
+ * warranty of any kind.\r
+ */\r
+\r
+/* This is a sample file containing the top level include directives\r
+ * for building Win32 Cryptoki libraries and applications.\r
+ */\r
+\r
+#ifndef ___CRYPTOKI_H_INC___\r
+#define ___CRYPTOKI_H_INC___\r
+\r
+#pragma pack(push, cryptoki, 1)\r
+\r
+/* Specifies that the function is a DLL entry point. */\r
+#define CK_IMPORT_SPEC __declspec(dllimport)\r
+\r
+/* Define CRYPTOKI_EXPORTS during the build of cryptoki libraries. Do\r
+ * not define it in applications.\r
+ */\r
+#ifdef CRYPTOKI_EXPORTS\r
+/* Specified that the function is an exported DLL entry point. */\r
+#define CK_EXPORT_SPEC __declspec(dllexport) \r
+#else\r
+#define CK_EXPORT_SPEC CK_IMPORT_SPEC \r
+#endif\r
+\r
+/* Ensures the calling convention for Win32 builds */\r
+#define CK_CALL_SPEC __cdecl\r
+\r
+#define CK_PTR *\r
+\r
+#define CK_DEFINE_FUNCTION(returnType, name) \\r
+  returnType CK_EXPORT_SPEC CK_CALL_SPEC name\r
+\r
+#define CK_DECLARE_FUNCTION(returnType, name) \\r
+  returnType CK_EXPORT_SPEC CK_CALL_SPEC name\r
+\r
+#define CK_DECLARE_FUNCTION_POINTER(returnType, name) \\r
+  returnType CK_IMPORT_SPEC (CK_CALL_SPEC CK_PTR name)\r
+\r
+#define CK_CALLBACK_FUNCTION(returnType, name) \\r
+  returnType (CK_CALL_SPEC CK_PTR name)\r
+\r
+#ifndef NULL_PTR\r
+#define NULL_PTR 0\r
+#endif\r
+\r
+#include "pkcs11.h"\r
+\r
+#pragma pack(pop, cryptoki)\r
+\r
+#endif /* ___CRYPTOKI_H_INC___ */\r