No empty .Rs/.Re
[netbsd-mini2440.git] / external / bsd / bind / dist / bin / pkcs11 / unix / cryptoki.h
blobd7e48935bc6bc123def6ee48b6d74f4775a0ceee
1 /* $NetBSD$ */
3 /* cryptoki.h include file for PKCS #11. */
4 /*
5 * Copyright (C) 2009 Internet Systems Consortium, Inc. ("ISC")
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.
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.
19 /* Revision: 1.3 */
22 * Portions Copyright RSA Security Inc.
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.
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.
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.
39 /* This is a sample file containing the top level include directives
40 * for building Unix Cryptoki libraries and applications.
43 #ifndef ___CRYPTOKI_H_INC___
44 #define ___CRYPTOKI_H_INC___
46 #define CK_PTR *
48 #define CK_DEFINE_FUNCTION(returnType, name) \
49 returnType name
51 #define CK_DECLARE_FUNCTION(returnType, name) \
52 returnType name
54 #define CK_DECLARE_FUNCTION_POINTER(returnType, name) \
55 returnType (* name)
57 #define CK_CALLBACK_FUNCTION(returnType, name) \
58 returnType (* name)
60 /* NULL is in unistd.h */
61 #include <unistd.h>
62 #define NULL_PTR NULL
64 #undef CK_PKCS11_FUNCTION_INFO
66 #include "pkcs11.h"
68 #endif /* ___CRYPTOKI_H_INC___ */