Added [Identity] config entry and forking support to server.
[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
46 #ifdef SOCKS5
47 #include "socks.h"
48 #endif
49
50 #ifdef HAVE_GETOPT_H
51 #include <getopt.h>
52 #endif
53
54 #ifdef HAVE_SIGNAL_H
55 #undef __USE_GNU
56 #include <signal.h>
57 #define __USE_GNU 1
58 #else
59 #error signal.h not found in the system
60 #endif
61
62 #ifdef HAVE_FCNTL_H
63 #include <fcntl.h>
64 #else
65 #error fcntl.h not found in the system
66 #endif
67
68 #ifdef HAVE_ASSERT_H
69 #include <errno.h>
70 #else
71 #error errno.h not found in the system
72 #endif
73
74 #ifdef HAVE_ASSERT_H
75 #include <assert.h>
76 #else
77 #error assert.h not found in the system
78 #endif
79
80 #include <sys/socket.h>
81 #ifdef HAVE_NETINET_IN_H
82 #include <netinet/in.h>
83 #else
84 #error netinet/in.h not found in the system
85 #endif
86
87 #ifdef HAVE_NETINET_TCP_H
88 #include <netinet/tcp.h>
89 #else
90 #error netinet/tcp.h not found in the system
91 #endif
92
93 #ifdef HAVE_NETDB_H
94 #include <netdb.h>
95 #else
96 #error netdb.h not found in the system
97 #endif
98
99 #ifdef HAVE_ARPA_INET_H
100 #include <arpa/inet.h>
101 #else
102 #error arpa/inet.h not found in the system
103 #endif
104
105 #ifdef HAVE_SYS_MMAN_H
106 #include <sys/mman.h>
107 #endif
108
109 #ifdef HAVE_DLFCN_H
110 #include <dlfcn.h>
111 #endif
112
113 #ifndef HAVE_GETOPT_LONG
114 #include "../lib/contrib/getopt.h"
115 #endif
116
117 #ifndef TRUE
118 #define TRUE 1
119 #endif
120 #ifndef FALSE
121 #define FALSE 0
122 #endif
123
124 /* Generic global SILC includes */
125 #include "bitmove.h"
126
127 /* Math library includes */
128 #include "silcmp.h"
129 #include "modinv.h"
130 #include "mpbin.h"
131 #include "silcprimegen.h"
132
133 /* Crypto library includes */
134 #include "silccipher.h"
135 #include "silchash.h"
136 #include "silchmac.h"
137 #include "silcrng.h"
138 #include "silcpkcs.h"
139
140 /* SILC util library includes */
141 #include "silclog.h"
142 #include "silcmemory.h"
143 #include "silcbuffer.h"
144 #include "silcbufutil.h"
145 #include "silcbuffmt.h"
146 #include "silcnet.h"
147 #include "silcutil.h"
148 #include "silcconfig.h"
149 #include "silctask.h"
150 #include "silcschedule.h"
151
152 /* SILC core library includes */
153 #include "id.h"
154 #include "idcache.h"
155 #include "silcprotocol.h"
156 #include "silcsockconn.h"
157 #include "silcpayload.h"
158 #include "silccommand.h"
159 #include "silcchannel.h"
160 #include "silcpacket.h"
161 #include "silcnotify.h"
162 #include "silcmode.h"
163
164 /* TRQ (SilcList API and SilcDList API) */
165 #include "silclist.h"
166 #include "silcdlist.h"
167
168 #ifdef SILC_SIM
169 /* SILC Module library includes */
170 #include "silcsim.h"
171 #include "silcsimutil.h"
172 #endif
173
174 /* SILC Key Exchange library includes */
175 #include "silcske.h"
176 #include "payload.h"
177 #include "groups.h"
178
179 #endif
180