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