Eneboo - Documentación para desarrolladores
src/libdigidoc/pkcs11/cryptoki.h
Ir a la documentación de este archivo.
00001 /* cryptoki.h include file for PKCS #11.  2001 June 25 */
00002 
00003 
00004 
00005 /* This is a sample file containing the top level include directives
00006 
00007  * for building Win32 Cryptoki libraries and applications.
00008 
00009  */
00010 
00011 
00012 
00013 #ifndef ___CRYPTOKI_H_INC___
00014 
00015 #define ___CRYPTOKI_H_INC___
00016 
00017 
00018 
00019 #pragma pack(push, cryptoki, 1)
00020 
00021 
00022 
00023 /* Specifies that the function is a DLL entry point. */
00024 
00025 #define CK_IMPORT_SPEC __declspec(dllimport)
00026 
00027 
00028 
00029 /* Define CRYPTOKI_EXPORTS during the build of cryptoki libraries. Do
00030 
00031  * not define it in applications.
00032 
00033  */
00034 
00035 #ifdef CRYPTOKI_EXPORTS
00036 
00037 /* Specified that the function is an exported DLL entry point. */
00038 
00039 #define CK_EXPORT_SPEC __declspec(dllexport) 
00040 
00041 #else
00042 
00043 #define CK_EXPORT_SPEC CK_IMPORT_SPEC 
00044 
00045 #endif
00046 
00047 
00048 
00049 /* Ensures the calling convention for Win32 builds */
00050 
00051 #define CK_CALL_SPEC __cdecl
00052 
00053 
00054 
00055 #define CK_PTR *
00056 
00057 
00058 
00059 #define CK_DEFINE_FUNCTION(returnType, name) \
00060   returnType CK_EXPORT_SPEC CK_CALL_SPEC name
00061 
00062 
00063 
00064 #define CK_DECLARE_FUNCTION(returnType, name) \
00065   returnType CK_EXPORT_SPEC CK_CALL_SPEC name
00066 
00067 
00068 
00069 #define CK_DECLARE_FUNCTION_POINTER(returnType, name) \
00070   returnType CK_IMPORT_SPEC (CK_CALL_SPEC CK_PTR name)
00071 
00072 
00073 
00074 #define CK_CALLBACK_FUNCTION(returnType, name) \
00075   returnType (CK_CALL_SPEC CK_PTR name)
00076 
00077 
00078 
00079 #ifndef NULL_PTR
00080 
00081 #define NULL_PTR 0
00082 
00083 #endif
00084 
00085 
00086 
00087 #include "pkcs11.h"
00088 
00089 
00090 
00091 #pragma pack(pop, cryptoki)
00092 
00093 
00094 
00095 #endif /* ___CRYPTOKI_H_INC___ */
00096 
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'