update
[silc.git] / includes / silcincludes.h
1
2 /*
3
4   silcincludes.h
5
6   Author: Pekka Riikonen <priikone@poseidon.pspt.fi>
7
8   Copyright (C) 1997 - 2000 Pekka Riikonen
9
10   This program is free software; you can redistribute it and/or modify
11   it under the terms of the GNU General Public License as published by
12   the Free Software Foundation; either version 2 of the License, or
13   (at your option) any later version.
14   
15   This program is distributed in the hope that it will be useful,
16   but WITHOUT ANY WARRANTY; without even the implied warranty of
17   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18   GNU General Public License for more details.
19
20 */
21 /*
22   This file includes common definitions for SILC. This file MUST be included
23   by all files in SILC (directly or through other global include file).
24 */
25
26 #ifndef SILCINCLUDES_H
27 #define SILCINCLUDES_H
28
29 /* Automatically generated configuration header */
30 #include "silcdefs.h"
31
32 #include <stdio.h>
33 #include <stdlib.h>
34 #include <unistd.h>
35 #include <string.h>
36 #include <stdarg.h>
37 #include <pwd.h>
38 #include <grp.h>
39
40 #include <ctype.h>
41 #include <sys/types.h>
42 #include <sys/stat.h>
43 #include <sys/time.h>
44 #include <sys/times.h>
45 #include <time.h>
46
47 #ifdef SOCKS5
48 #include "socks.h"
49 #endif
50
51 #ifdef HAVE_GETOPT_H
52 #include <getopt.h>
53 #endif
54
55 #ifdef HAVE_SIGNAL_H
56 #undef __USE_GNU
57 #include <signal.h>
58 #define __USE_GNU 1
59 #else
60 #error signal.h not found in the system
61 #endif
62
63 #ifdef HAVE_FCNTL_H
64 #include <fcntl.h>
65 #else
66 #error fcntl.h not found in the system
67 #endif
68
69 #ifdef HAVE_ASSERT_H
70 #include <errno.h>
71 #else
72 #error errno.h not found in the system
73 #endif
74
75 #ifdef HAVE_ASSERT_H
76 #include <assert.h>
77 #else
78 #error assert.h not found in the system
79 #endif
80
81 #include <sys/socket.h>
82 #ifdef HAVE_NETINET_IN_H
83 #include <netinet/in.h>
84 #else
85 #error netinet/in.h not found in the system
86 #endif
87
88 #ifdef HAVE_NETINET_TCP_H
89 #include <netinet/tcp.h>
90 #else
91 #error netinet/tcp.h not found in the system
92 #endif
93
94 #ifdef HAVE_NETDB_H
95 #include <netdb.h>
96 #else
97 #error netdb.h not found in the system
98 #endif
99
100 #ifdef HAVE_ARPA_INET_H
101 #include <arpa/inet.h>
102 #else
103 #error arpa/inet.h not found in the system
104 #endif
105
106 #ifdef HAVE_SYS_MMAN_H
107 #include <sys/mman.h>
108 #endif
109
110 #ifdef HAVE_DLFCN_H
111 #include <dlfcn.h>
112 #endif
113
114 #ifndef HAVE_GETOPT_LONG
115 #include "../lib/contrib/getopt.h"
116 #endif
117
118 #ifndef TRUE
119 #define TRUE 1
120 #endif
121 #ifndef FALSE
122 #define FALSE 0
123 #endif
124
125 /* Generic global SILC includes */
126 #include "bitmove.h"
127
128 /* Math library includes */
129 #include "silcmp.h"
130 #include "modinv.h"
131 #include "mpbin.h"
132 #include "silcprimegen.h"
133
134 /* Crypto library includes */
135 #include "silccipher.h"
136 #include "silchash.h"
137 #include "silchmac.h"
138 #include "silcrng.h"
139 #include "silcpkcs.h"
140
141 /* SILC util library includes */
142 #include "silclog.h"
143 #include "silcmemory.h"
144 #include "silcbuffer.h"
145 #include "silcbufutil.h"
146 #include "silcbuffmt.h"
147 #include "silcnet.h"
148 #include "silcutil.h"
149 #include "silcconfig.h"
150 #include "silctask.h"
151 #include "silcschedule.h"
152
153 /* SILC core library includes */
154 #include "id.h"
155 #include "idcache.h"
156 #include "silcprotocol.h"
157 #include "silcsockconn.h"
158 #include "silcpayload.h"
159 #include "silccommand.h"
160 #include "silcchannel.h"
161 #include "silcpacket.h"
162 #include "silcnotify.h"
163 #include "silcmode.h"
164
165 /* TRQ (SilcList API and SilcDList API) */
166 #include "silclist.h"
167 #include "silcdlist.h"
168
169 #ifdef SILC_SIM
170 /* SILC Module library includes */
171 #include "silcsim.h"
172 #include "silcsimutil.h"
173 #endif
174
175 /* SILC Key Exchange library includes */
176 #include "silcske.h"
177 #include "payload.h"
178 #include "groups.h"
179
180 #endif
181