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