00001 /* cryptoki.h include file for PKCS #11. */ 00002 /* 00003 * Copyright (C) 2009 Internet Systems Consortium, Inc. ("ISC") 00004 * 00005 * Permission to use, copy, modify, and/or distribute this software for any 00006 * purpose with or without fee is hereby granted, provided that the above 00007 * copyright notice and this permission notice appear in all copies. 00008 * 00009 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC AND NETWORK ASSOCIATES DISCLAIMS 00010 * ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED 00011 * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE 00012 * FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 00013 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 00014 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR 00015 * IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 00016 */ 00017 /* $Revision: 1.3 $ */ 00018 00019 /* 00020 * Portions Copyright RSA Security Inc. 00021 * 00022 * License to copy and use this software is granted provided that it is 00023 * identified as "RSA Security Inc. PKCS #11 Cryptographic Token Interface 00024 * (Cryptoki)" in all material mentioning or referencing this software. 00025 00026 * License is also granted to make and use derivative works provided that 00027 * such works are identified as "derived from the RSA Security Inc. PKCS #11 00028 * Cryptographic Token Interface (Cryptoki)" in all material mentioning or 00029 * referencing the derived work. 00030 00031 * RSA Security Inc. makes no representations concerning either the 00032 * merchantability of this software or the suitability of this software for 00033 * any particular purpose. It is provided "as is" without express or implied 00034 * warranty of any kind. 00035 */ 00036 00037 /* This is a sample file containing the top level include directives 00038 * for building Unix Cryptoki libraries and applications. 00039 */ 00040 00041 #ifndef ___CRYPTOKI_H_INC___ 00042 #define ___CRYPTOKI_H_INC___ 00043 00044 #define CK_PTR * 00045 00046 #define CK_DEFINE_FUNCTION(returnType, name) \ 00047 returnType name 00048 00049 #define CK_DECLARE_FUNCTION(returnType, name) \ 00050 returnType name 00051 00052 #define CK_DECLARE_FUNCTION_POINTER(returnType, name) \ 00053 returnType (* name) 00054 00055 #define CK_CALLBACK_FUNCTION(returnType, name) \ 00056 returnType (* name) 00057 00058 /* NULL is in unistd.h */ 00059 #include <unistd.h> 00060 #define NULL_PTR NULL 00061 00062 #undef CK_PKCS11_FUNCTION_INFO 00063 00064 #include <pkcs11/pkcs11.h> 00065 00066 #endif /* ___CRYPTOKI_H_INC___ */