/[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 218 - (show annotations) (download)
Fri Sep 6 07:38:08 2002 UTC (10 years, 8 months ago) by rabbi
File MIME type: text/plain
File size: 9315 byte(s)
We now generate dummy messages as mail enters and exits the pool.
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.21 2002/09/06 07:38:08 rabbi 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 #if defined(USE_WINGUI) && !defined(WIN32)
127 #error "The GUI requires Win32!"
128 #endif
129
130 #if defined(WIN32) && !defined(_USRDLL)
131 #define DLLIMPORT __declspec(dllimport)
132 #else
133 #define DLLIMPORT
134 #endif
135
136 /** Constants *********************************************************/
137
138 /* Give up if a file is larger than BUFFER_MAX bytes: */
139 /* #define BUFFER_MAX 64*1024*1024 */
140
141 #define PATHMAX 512
142 #define LINELEN 128
143 #define BUFSIZE 4096
144
145 /** if it is a systemwide installation defined GLOBALMIXCONF **********/
146 /* #define GLOBALMIXCONF "/etc/mix.cfg" */
147
148 /* The path to append to a user's homedirectory for his local Mix dir */
149 #ifndef HOMEMIXDIR
150 #define HOMEMIXDIR "Mix"
151 #endif
152
153 /** file names ********************************************************/
154
155 #define DEFAULT_MIXCONF "mix.cfg" /* mixmaster configuration file */
156 #define DEFAULT_DISCLAIMFILE "disclaim.txt"
157 #define DEFAULT_FROMDSCLFILE "fromdscl.txt"
158 #define DEFAULT_MSGFOOTERFILE "footer.txt"
159 #define DEFAULT_POP3CONF "pop3.cfg"
160 #define DEFAULT_HELPFILE "help.txt"
161 #define DEFAULT_ABUSEFILE "abuse.txt"
162 #define DEFAULT_REPLYFILE "reply.txt"
163 #define DEFAULT_USAGEFILE "usage.txt"
164 #define DEFAULT_USAGELOG "usage.log"
165 #define DEFAULT_BLOCKFILE "blocked.txt"
166 #define DEFAULT_ADMKEYFILE "adminkey.txt"
167 #define DEFAULT_KEYFILE "key.txt"
168 #define DEFAULT_PGPKEY "pgpkey.txt"
169 #define DEFAULT_DSAPARAMS "dsaparam.mix"
170 #define DEFAULT_DHPARAMS "dhparam.mix"
171 #define DEFAULT_MIXRAND "mixrand.bin"
172 #define DEFAULT_SECRING "secring.mix"
173 #define DEFAULT_PUBRING "pubring.mix"
174 #define DEFAULT_IDLOG "id.log"
175 #define DEFAULT_STATS "stats.log"
176 /* To enable multiple dest.blk files, edit the following line. */
177 /* Filenames must be seperated by one space. */
178 #define DEFAULT_DESTBLOCK "dest.blk rab.blk"
179 #define DEFAULT_DESTALLOW "dest.alw"
180 #define DEFAULT_SOURCEBLOCK "source.blk"
181 #define DEFAULT_HDRFILTER "header.blk"
182 #define DEFAULT_REGULAR "time.log"
183 #define DEFAULT_POOL "pool" /* remailer pool subdirectory */
184 #define DEFAULT_TYPE1LIST "rlist.txt"
185 #define DEFAULT_TYPE2REL "mlist.txt"
186 #ifdef SHORTNAMES
187 #define DEFAULT_TYPE2LIST "type2.lis"
188 #else
189 #define DEFAULT_TYPE2LIST "type2.list"
190 #endif
191 #define DEFAULT_PIDFILE "mix.pid"
192
193 #define DEFAULT_PGPREMPUBRING "pubring.pgp"
194 #define DEFAULT_PGPREMPUBASC "pubring.asc"
195 #define DEFAULT_PGPREMSECRING "secring.pgp"
196 #define DEFAULT_NYMSECRING "nymsec.pgp"
197 #define DEFAULT_NYMDB "secrets.mix"
198
199 extern char MIXCONF[];
200 extern char DISCLAIMFILE[];
201 extern char FROMDSCLFILE[];
202 extern char MSGFOOTERFILE[];
203 extern char POP3CONF[];
204 extern char HELPFILE[];
205 extern char ABUSEFILE[];
206 extern char REPLYFILE[];
207 extern char USAGEFILE[];
208 extern char USAGELOG[];
209 extern char BLOCKFILE[];
210 extern char ADMKEYFILE[];
211 extern char KEYFILE[];
212 extern char PGPKEY[];
213 extern char DSAPARAMS[];
214 extern char DHPARAMS[];
215 extern char MIXRAND[];
216 extern char SECRING[];
217 extern char PUBRING[];
218 extern char IDLOG[];
219 extern char STATS[];
220 extern char DESTBLOCK[];
221 extern char DESTALLOW[];
222 extern char SOURCEBLOCK[];
223 extern char HDRFILTER[];
224 extern char REGULAR[];
225 extern char POOL[];
226 extern char TYPE1LIST[];
227 extern char TYPE2REL[];
228 extern char TYPE2LIST[];
229 extern char PIDFILE[];
230
231 extern char PGPREMPUBRING[];
232 extern char PGPREMPUBASC[];
233 extern char PGPREMSECRING[];
234 DLLIMPORT extern char NYMSECRING[];
235 extern char NYMDB[];
236
237 /* string constants */
238 #define remailer_type "Remailer-Type: Mixmaster "
239 #define begin_remailer "-----BEGIN REMAILER MESSAGE-----"
240 #define end_remailer "-----END REMAILER MESSAGE-----"
241 #define begin_key "-----Begin Mix Key-----"
242 #define end_key "-----End Mix Key-----"
243 #define begin_pgp "-----BEGIN PGP "
244 #define end_pgp "-----END PGP "
245 #define begin_pgpmsg "-----BEGIN PGP MESSAGE-----"
246 #define end_pgpmsg "-----END PGP MESSAGE-----"
247 #define begin_pgpkey "-----BEGIN PGP PUBLIC KEY BLOCK-----"
248 #define end_pgpkey "-----END PGP PUBLIC KEY BLOCK-----"
249 #define begin_pgpseckey "-----BEGIN PGP PRIVATE KEY BLOCK-----"
250 #define end_pgpseckey "-----END PGP PRIVATE KEY BLOCK-----"
251 #define begin_pgpsigned "-----BEGIN PGP SIGNED MESSAGE-----"
252 #define begin_pgpsig "-----BEGIN PGP SIGNATURE-----"
253 #define end_pgpsig "-----END PGP SIGNATURE-----"
254 #define info_beginpgp "=====BEGIN PGP MESSAGE====="
255 #define info_endpgp "=====END PGP MESSAGE====="
256 #define info_pgpsig "=====Sig: "
257
258
259 /***********************************************************************
260 * The following variables are read from mix.cfg, with default values
261 * defined in mix.c */
262
263 int REMAIL;
264 int MIX;
265 int PGP;
266 int UNENCRYPTED;
267 int REMIX;
268 int REPGP;
269 extern char MIXDIR[];
270 extern char POOLDIR[];
271 extern char SENDMAIL[];
272 extern char SENDANONMAIL[];
273 extern char SMTPRELAY[];
274 extern char NEWS[];
275 extern char MAILtoNEWS[];
276 extern char ORGANIZATION[];
277 extern char MID[];
278 extern char TYPE1[];
279 extern char ERRLOG[];
280 extern char NAME[];
281 extern char ADDRESS[];
282 extern char REMAILERADDR[];
283 extern char ANONADDR[];
284 extern char REMAILERNAME[];
285 extern char ANONNAME[];
286 extern char COMPLAINTS[];
287 extern int AUTOREPLY;
288 extern char HELONAME[];
289 extern char ENVFROM[];
290 extern char SHORTNAME[];
291 extern int POOLSIZE;
292 extern int RATE;
293 extern int DUMMYMAILINPROBABILITY;
294 extern int DUMMYMAILOUTPROBABILITY;
295 extern int MIDDLEMAN;
296 extern int AUTOBLOCK;
297 extern char FORWARDTO[];
298 extern int SIZELIMIT;
299 extern int INFLATEMAX;
300 extern int MAXRANDHOPS;
301 extern int BINFILTER;
302 extern int LISTSUPPORTED;
303 extern long PACKETEXP;
304 extern long IDEXP;
305 DLLIMPORT extern int VERBOSE;
306 extern long SENDPOOLTIME;
307 extern long MAILINTIME;
308 extern long KEYLIFETIME;
309 extern long KEYOVERLAPPERIOD;
310 extern long KEYGRACEPERIOD;
311 extern int NUMCOPIES;
312 extern char CHAIN[];
313 extern int DISTANCE;
314 extern int MINREL;
315 extern int RELFINAL;
316 extern long MAXLAT;
317 DLLIMPORT extern char PGPPUBRING[];
318 DLLIMPORT extern char PGPSECRING[];
319 DLLIMPORT extern char PASSPHRASE[];
320 extern long POP3TIME;
321 extern int POP3DEL;
322 extern int POP3SIZELIMIT;
323 extern char MAILBOX[];
324 extern char MAILIN[];
325 extern char MAILABUSE[];
326 extern char MAILBLOCK[];
327 extern char MAILUSAGE[];
328 extern char MAILANON[];
329 extern char MAILERROR[];
330 extern char MAILBOUNCE[];
331
332 DLLIMPORT extern char ENTEREDPASSPHRASE[LINELEN];
333
334 #endif

  ViewVC Help
Powered by ViewVC 1.1.5