/[pdpsoft]/trunk/grid-mw-security/ees/include/common/polytypes.h
ViewVC logotype

Contents of /trunk/grid-mw-security/ees/include/common/polytypes.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 473 - (show annotations) (download) (as text)
Wed Jun 24 14:25:36 2009 UTC (12 years, 6 months ago) by aramv
File MIME type: text/x-csrc
File size: 2183 byte(s)
Added test code for l[4~oading a PEM file into the AOS.
1 #ifndef POLYTYPES_H
2 #define POLYTYPES_H
3 /* Get size_t. */
4 #include <stddef.h>
5
6 /* Get wchar_t. */
7 #ifdef HAVE_WCHAR_T
8 # include <stddef.h>
9 #endif
10
11 /* Get wint_t. */
12 #ifdef HAVE_WINT_T
13 # include <wchar.h>
14 #endif
15
16
17 /* Argument types */
18 typedef enum
19 {
20 TYPE_NONE,
21 TYPE_SCHAR,
22 TYPE_UCHAR,
23 TYPE_SHORT,
24 TYPE_USHORT,
25 TYPE_INT,
26 TYPE_UINT,
27 TYPE_LONGINT,
28 TYPE_ULONGINT,
29 #ifdef HAVE_LONG_LONG_INT
30 TYPE_LONGLONGINT,
31 TYPE_ULONGLONGINT,
32 #endif
33 TYPE_FLOAT,
34 TYPE_DOUBLE,
35 #ifdef HAVE_LONG_DOUBLE
36 TYPE_LONGDOUBLE,
37 #endif
38 TYPE_CHAR,
39 #ifdef HAVE_WINT_T
40 TYPE_WIDE_CHAR,
41 #endif
42 TYPE_STRING,
43 #ifdef HAVE_WCHAR_T
44 TYPE_WIDE_STRING,
45 #endif
46 TYPE_POINTER,
47 TYPE_COUNT_SCHAR_POINTER,
48 TYPE_COUNT_SHORT_POINTER,
49 TYPE_COUNT_INT_POINTER,
50 TYPE_COUNT_LONGINT_POINTER,
51 #ifdef HAVE_LONG_LONG_INT
52 TYPE_COUNT_LONGLONGINT_POINTER,
53 #endif
54 TYPE_PEM,
55 TYPE_X509,
56 TYPE_STACK_OF_X509,
57 TYPE_EVP_PKEY
58 } arg_type;
59
60 typedef union
61 {
62 signed char a_schar;
63 unsigned char a_uchar;
64 short a_short;
65 unsigned short a_ushort;
66 int a_int;
67 unsigned int a_uint;
68 long int a_longint;
69 unsigned long int a_ulongint;
70 #ifdef HAVE_LONG_LONG_INT
71 long long int a_longlongint;
72 unsigned long long int a_ulonglongint;
73 #endif
74 float a_float;
75 double a_double;
76 #ifdef HAVE_LONG_DOUBLE
77 long double a_longdouble;
78 #endif
79 int a_char;
80 #ifdef HAVE_WINT_T
81 wint_t a_wide_char;
82 #endif
83 const char* a_string;
84 #ifdef HAVE_WCHAR_T
85 const wchar_t* a_wide_string;
86 #endif
87 void* a_pointer;
88 signed char * a_count_schar_pointer;
89 short * a_count_short_pointer;
90 int * a_count_int_pointer;
91 long int * a_count_longint_pointer;
92 #ifdef HAVE_LONG_LONG_INT
93 long long int * a_count_longlongint_pointer;
94 #endif
95 /* Polymorphic argument */
96 } u_data;
97
98 #endif

grid.support@nikhef.nl
ViewVC Help
Powered by ViewVC 1.1.28