/[pkg-mixmaster]/trunk/Mix/Src/config.h
ViewVC logotype

Contents of /trunk/Mix/Src/config.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 392 - (show annotations) (download)
Sun Dec 8 00:56:23 2002 UTC (10 years, 5 months ago) by weaselp
File MIME type: text/plain
File size: 9496 byte(s)
Have stats on intermediate vs. final hop count (closes: #649900).
1 /* Mixmaster version 3 -- (C) 1999 Anonymizer Inc.
2
3 Mixmaster may be redistributed and modified under certain conditions.
4 This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF
5 ANY KIND, either express or implied. See the file COPYRIGHT for
6 details.
7
8 Configuration
9 $Id: config.h,v 1.28 2002/12/08 00:56:23 weaselp Exp $ */
10
11
12 #ifndef _CONFIG_H
13 #define _CONFIG_H
14 #include "version.h"
15
16 /* Disclaimer to be inserted in all anonymous messages: */
17 #define DISCLAIMER \
18 "Comments: This message did not originate from the Sender address above.\n" \
19 "\tIt was remailed automatically by anonymizing remailer software.\n" \
20 "\tPlease report problems or inappropriate use to the\n" \
21 "\tremailer administrator at <%s>.\n" /* (%s is the complaints address) */
22
23 /* Additional disclaimer to be inserted in the body of messages with
24 * user-supplied From lines, e.g.
25 * "NOTE: The above From: line has not been authenticated!\n\n" */
26 #define FROMDISCLAIMER ""
27
28 /* Additional disclaimer to be inserted at the bottom of the body of all
29 * messages */
30 #define MSGFOOTER ""
31
32 /* Comment to be inserted when a binary attachment is filtered out: */
33 #define BINDISCLAIMER \
34 "[...]"
35
36 /* Character set for MIME-encoded mail header lines */
37 #define MIMECHARSET "iso-8859-1"
38 #if 1
39 #define DEFLTENTITY ""
40 #else
41 #define DEFLTENTITY "text/plain; charset=" MIMECHARSET
42 #endif
43
44 /** Libraries and library functions **********************************/
45
46 /* Use the OpenSSL crypto library (required) */
47 #define USE_OPENSSL
48 /* Use the RSA cryptosystem? */
49 #define USE_RSA
50 /* Use IDEA algorithm? (See file idea.txt) */
51 /* #define USE_IDEA */
52 /* Use AES algorithm? - should be handled by Install script setting compiler option -DUSE_AES */
53 /* #define USE_AES */
54 /* Support the OpenPGP message format? */
55 #define USE_PGP
56
57 /* the following are defined in the Makefile */
58 #if 0
59 /* Use the PCRE regular expression library for destination blocking? */
60 #define USE_PCRE
61 /* Use zlib for compression? */
62 #define USE_ZLIB
63 /* Use ncurses? */
64 #define USE_NCURSES
65 /* Use the WIN GUI? */
66 #define USE_WINGUI
67 /* Use sockets to deliver mail */
68 #define USE_SOCK
69 #endif
70
71 /** System dependencies **********************************************/
72 /* Macros: UNIX for Unix-style systems
73 POSIX for systems with POSIX header files (including DJGPP)
74 MSDOS for 32 bit DOS
75 WIN32 for Windows 95/NT */
76
77 #if defined(_WIN32) && !defined(WIN32)
78 #define WIN32
79 #endif
80
81 #if defined(__RSXNT__) && !defined(WIN32)
82 #define WIN32
83 #endif
84
85 #if !defined(UNIX) && !defined(WIN32) && !defined(MSDOS)
86 #define UNIX
87 #endif
88
89 #if defined(UNIX) && !defined(POSIX)
90 #define POSIX
91 #endif
92
93 #ifdef UNIX
94 #define HAVE_UNAME
95 #define HAVE_GECOS
96 #define DEV_URANDOM "/dev/urandom"
97 #ifdef __OpenBSD__
98 #define DEV_RANDOM "/dev/srandom"
99 #else
100 #define DEV_RANDOM "/dev/random"
101 #endif
102 #endif
103
104 #if defined(POSIX) || defined(USE_SOCK)
105 #define HAVE_GETHOSTNAME
106 #endif
107
108 #ifdef POSIX
109 #define HAVE_TERMIOS
110 /* not a POSIX function, but avaiable on virtually all Unix systems */
111 #define HAVE_GETTIMEOFDAY
112 #endif
113
114 #ifdef linux
115 #define HAVE_GETDOMAINNAME
116 #endif
117
118 #ifdef MSDOS
119 #define SHORTNAMES
120 #ifndef WIN32
121 #define HAVE_GETKEY
122 #undef USE_SOCK
123 #endif
124 #endif
125
126 #ifdef WIN32
127 #define NO_SETENV
128 #endif
129
130 #if defined(USE_WINGUI) && !defined(WIN32)
131 #error "The GUI requires Win32!"
132 #endif
133
134 #if defined(WIN32) && !defined(_USRDLL)
135 #define DLLIMPORT __declspec(dllimport)
136 #else
137 #define DLLIMPORT
138 #endif
139
140 /** Constants *********************************************************/
141
142 /* Give up if a file is larger than BUFFER_MAX bytes: */
143 /* #define BUFFER_MAX 64*1024*1024 */
144
145 #define PATHMAX 512
146 #define LINELEN 128
147 #define BUFSIZE 4096
148
149 /** if it is a systemwide installation defined GLOBALMIXCONF **********/
150 /* #define GLOBALMIXCONF "/etc/mix.cfg" */
151
152 /* The path to append to a user's homedirectory for his local Mix dir */
153 #ifndef HOMEMIXDIR
154 #define HOMEMIXDIR "Mix"
155 #endif
156
157 /** file names ********************************************************/
158
159 #define DEFAULT_MIXCONF "mix.cfg" /* mixmaster configuration file */
160 #define DEFAULT_DISCLAIMFILE "disclaim.txt"
161 #define DEFAULT_FROMDSCLFILE "fromdscl.txt"
162 #define DEFAULT_MSGFOOTERFILE "footer.txt"
163 #define DEFAULT_POP3CONF "pop3.cfg"
164 #define DEFAULT_HELPFILE "help.txt"
165 #define DEFAULT_ABUSEFILE "abuse.txt"
166 #define DEFAULT_REPLYFILE "reply.txt"
167 #define DEFAULT_USAGEFILE "usage.txt"
168 #define DEFAULT_USAGELOG "usage.log"
169 #define DEFAULT_BLOCKFILE "blocked.txt"
170 #define DEFAULT_ADMKEYFILE "adminkey.txt"
171 #define DEFAULT_KEYFILE "key.txt"
172 #define DEFAULT_PGPKEY "pgpkey.txt"
173 #define DEFAULT_DSAPARAMS "dsaparam.mix"
174 #define DEFAULT_DHPARAMS "dhparam.mix"
175 #define DEFAULT_MIXRAND "mixrand.bin"
176 #define DEFAULT_SECRING "secring.mix"
177 #define DEFAULT_PUBRING "pubring.mix"
178 #define DEFAULT_IDLOG "id.log"
179 #define DEFAULT_STATS "stats.log"
180 /* To enable multiple dest.blk files, edit the following line. */
181 /* Filenames must be seperated by one space. */
182 #define DEFAULT_DESTBLOCK "dest.blk rab.blk"
183 #define DEFAULT_DESTALLOW "dest.alw"
184 #define DEFAULT_SOURCEBLOCK "source.blk"
185 #define DEFAULT_HDRFILTER "header.blk"
186 #define DEFAULT_REGULAR "time.log"
187 #define DEFAULT_POOL "pool" /* remailer pool subdirectory */
188 #define DEFAULT_TYPE1LIST "rlist.txt"
189 #define DEFAULT_TYPE2REL "mlist.txt"
190 #ifdef SHORTNAMES
191 #define DEFAULT_TYPE2LIST "type2.lis"
192 #else
193 #define DEFAULT_TYPE2LIST "type2.list"
194 #endif
195 #define DEFAULT_PIDFILE "mix.pid"
196
197 #define DEFAULT_PGPREMPUBRING "pubring.pgp"
198 #define DEFAULT_PGPREMPUBASC "pubring.asc"
199 #define DEFAULT_PGPREMSECRING "secring.pgp"
200 #define DEFAULT_NYMSECRING "nymsec.pgp"
201 #define DEFAULT_NYMDB "secrets.mix"
202 #define DEFAULT_STAREX "starex.txt"
203
204 extern char MIXCONF[];
205 extern char DISCLAIMFILE[];
206 extern char FROMDSCLFILE[];
207 extern char MSGFOOTERFILE[];
208 extern char POP3CONF[];
209 extern char HELPFILE[];
210 extern char ABUSEFILE[];
211 extern char REPLYFILE[];
212 extern char USAGEFILE[];
213 extern char USAGELOG[];
214 extern char BLOCKFILE[];
215 extern char ADMKEYFILE[];
216 extern char KEYFILE[];
217 extern char PGPKEY[];
218 extern char DSAPARAMS[];
219 extern char DHPARAMS[];
220 extern char MIXRAND[];
221 extern char SECRING[];
222 extern char PUBRING[];
223 extern char IDLOG[];
224 extern char STATS[];
225 extern char DESTBLOCK[];
226 extern char DESTALLOW[];
227 extern char SOURCEBLOCK[];
228 extern char HDRFILTER[];
229 extern char REGULAR[];
230 extern char POOL[];
231 extern char TYPE1LIST[];
232 extern char TYPE2REL[];
233 extern char TYPE2LIST[];
234 extern char PIDFILE[];
235 extern char STAREX[];
236
237 extern char PGPREMPUBRING[];
238 extern char PGPREMPUBASC[];
239 extern char PGPREMSECRING[];
240 DLLIMPORT extern char NYMSECRING[];
241 extern char NYMDB[];
242
243 /* string constants */
244 #define remailer_type "Remailer-Type: Mixmaster "
245 #define mixmaster_protocol "2"
246 #define begin_remailer "-----BEGIN REMAILER MESSAGE-----"
247 #define end_remailer "-----END REMAILER MESSAGE-----"
248 #define begin_key "-----Begin Mix Key-----"
249 #define end_key "-----End Mix Key-----"
250 #define begin_pgp "-----BEGIN PGP "
251 #define end_pgp "-----END PGP "
252 #define begin_pgpmsg "-----BEGIN PGP MESSAGE-----"
253 #define end_pgpmsg "-----END PGP MESSAGE-----"
254 #define begin_pgpkey "-----BEGIN PGP PUBLIC KEY BLOCK-----"
255 #define end_pgpkey "-----END PGP PUBLIC KEY BLOCK-----"
256 #define begin_pgpseckey "-----BEGIN PGP PRIVATE KEY BLOCK-----"
257 #define end_pgpseckey "-----END PGP PRIVATE KEY BLOCK-----"
258 #define begin_pgpsigned "-----BEGIN PGP SIGNED MESSAGE-----"
259 #define begin_pgpsig "-----BEGIN PGP SIGNATURE-----"
260 #define end_pgpsig "-----END PGP SIGNATURE-----"
261 #define info_beginpgp "=====BEGIN PGP MESSAGE====="
262 #define info_endpgp "=====END PGP MESSAGE====="
263 #define info_pgpsig "=====Sig: "
264
265
266 /***********************************************************************
267 * The following variables are read from mix.cfg, with default values
268 * defined in mix.c */
269
270 int REMAIL;
271 int MIX;
272 int PGP;
273 int UNENCRYPTED;
274 int REMIX;
275 int REPGP;
276 extern char MIXDIR[];
277 extern char POOLDIR[];
278 extern char SENDMAIL[];
279 extern char SENDANONMAIL[];
280 extern char SMTPRELAY[];
281 extern char SMTPUSERNAME[];
282 extern char SMTPPASSWORD[];
283 extern char NEWS[];
284 extern char MAILtoNEWS[];
285 extern char ORGANIZATION[];
286 extern char MID[];
287 extern char TYPE1[];
288 extern char ERRLOG[];
289 extern char NAME[];
290 extern char ADDRESS[];
291 extern char REMAILERADDR[];
292 extern char ANONADDR[];
293 extern char REMAILERNAME[];
294 extern char ANONNAME[];
295 extern char COMPLAINTS[];
296 extern int AUTOREPLY;
297 extern char HELONAME[];
298 extern char ENVFROM[];
299 extern char SHORTNAME[];
300 extern int POOLSIZE;
301 extern int RATE;
302 extern int INDUMMYP;
303 extern int OUTDUMMYP;
304 extern int MIDDLEMAN;
305 extern int AUTOBLOCK;
306 extern int STATSDETAILS;
307 extern char FORWARDTO[];
308 extern int SIZELIMIT;
309 extern int INFLATEMAX;
310 extern int MAXRANDHOPS;
311 extern int BINFILTER;
312 extern int LISTSUPPORTED;
313 extern long PACKETEXP;
314 extern long IDEXP;
315 DLLIMPORT extern int VERBOSE;
316 extern long SENDPOOLTIME;
317 extern long MAILINTIME;
318 extern long KEYLIFETIME;
319 extern long KEYOVERLAPPERIOD;
320 extern long KEYGRACEPERIOD;
321 extern int NUMCOPIES;
322 extern char CHAIN[];
323 extern int DISTANCE;
324 extern int MINREL;
325 extern int RELFINAL;
326 extern long MAXLAT;
327 DLLIMPORT extern char PGPPUBRING[];
328 DLLIMPORT extern char PGPSECRING[];
329 DLLIMPORT extern char PASSPHRASE[];
330 extern long POP3TIME;
331 extern int POP3DEL;
332 extern int POP3SIZELIMIT;
333 extern char MAILBOX[];
334 extern char MAILIN[];
335 extern char MAILABUSE[];
336 extern char MAILBLOCK[];
337 extern char MAILUSAGE[];
338 extern char MAILANON[];
339 extern char MAILERROR[];
340 extern char MAILBOUNCE[];
341
342 DLLIMPORT extern char ENTEREDPASSPHRASE[LINELEN];
343
344 #endif

  ViewVC Help
Powered by ViewVC 1.1.5