1/* cryptoki.h include file for PKCS #11. */ 2/* 3 * Copyright (C) 2009 Internet Systems Consortium, Inc. ("ISC") 4 * 5 * Permission to use, copy, modify, and/or distribute this software for any 6 * purpose with or without fee is hereby granted, provided that the above 7 * copyright notice and this permission notice appear in all copies. 8 * 9 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC AND NETWORK ASSOCIATES DISCLAIMS 10 * ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED 11 * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE 12 * FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 13 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 14 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR 15 * IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16 */ 17/* $Revision: 1.3 $ */ 18 19/* 20 * Portions Copyright RSA Security Inc. 21 * 22 * License to copy and use this software is granted provided that it is 23 * identified as "RSA Security Inc. PKCS #11 Cryptographic Token Interface 24 * (Cryptoki)" in all material mentioning or referencing this software. 25 26 * License is also granted to make and use derivative works provided that 27 * such works are identified as "derived from the RSA Security Inc. PKCS #11 28 * Cryptographic Token Interface (Cryptoki)" in all material mentioning or 29 * referencing the derived work. 30 31 * RSA Security Inc. makes no representations concerning either the 32 * merchantability of this software or the suitability of this software for 33 * any particular purpose. It is provided "as is" without express or implied 34 * warranty of any kind. 35 */ 36 37/* This is a sample file containing the top level include directives 38 * for building Unix Cryptoki libraries and applications. 39 */ 40 41#ifndef ___CRYPTOKI_H_INC___ 42#define ___CRYPTOKI_H_INC___ 43 44#define CK_PTR * 45 46#define CK_DEFINE_FUNCTION(returnType, name) \ 47 returnType name 48 49#define CK_DECLARE_FUNCTION(returnType, name) \ 50 returnType name 51 52#define CK_DECLARE_FUNCTION_POINTER(returnType, name) \ 53 returnType (* name) 54 55#define CK_CALLBACK_FUNCTION(returnType, name) \ 56 returnType (* name) 57 58/* NULL is in unistd.h */ 59#include <unistd.h> 60#define NULL_PTR NULL 61 62#undef CK_PKCS11_FUNCTION_INFO 63 64#include "pkcs11.h" 65 66#endif /* ___CRYPTOKI_H_INC___ */ 67