1 /* types.h - Some type definitions
2 * Copyright (C) 2002 Timo Schulz
4 * This file is part of OpenCDK.
6 * OpenCDK is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * OpenCDK is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with OpenCDK; if not, write to the Free Software Foundation,
18 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
24 #include <gcrypt.h> /*FIXME!*/
26 #ifndef HAVE_BYTE_TYPEDEF
28 typedef unsigned char byte
;
29 # define HAVE_BYTE_TYPEDEF
32 #ifndef HAVE_U16_TYPEDEF
34 typedef unsigned short u16
;
35 # define HAVE_U16_TYPEDEF
38 #ifndef HAVE_U32_TYPEDEF
40 typedef unsigned int u32
;
41 # define HAVE_U32_TYPEDEF
45 # define DIM(v) (sizeof (v)/sizeof ((v)[0]))
46 # define DIMof(type, member) DIM(((type *)0)->member)
50 struct cdk_verify_result_s
;
51 typedef struct cdk_verify_result_s
*_cdk_verify_result_t
;
53 #endif /* CDK_TYPES_H */