/[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 182 - (show annotations) (download)
Sun Aug 25 13:27:40 2002 UTC (10 years, 8 months ago) by weaselp
File MIME type: text/plain
File size: 9021 byte(s)
Use names rather than numbers as arument to pgp_armor. Have PGP PRIVATE for armoring
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.14 2002/08/25 13:27:40 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 #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
192 #define DEFAULT_PGPREMPUBRING "pubring.pgp"
193 #define DEFAULT_PGPREMPUBASC "pubring.asc"
194 #define DEFAULT_PGPREMSECRING "secring.pgp"
195 #define DEFAULT_NYMSECRING "nymsec.pgp"
196 #define DEFAULT_NYMDB "secrets.mix"
197
198 extern char MIXCONF[];
199 extern char DISCLAIMFILE[];
200 extern char FROMDSCLFILE[];
201 extern char MSGFOOTERFILE[];
202 extern char POP3CONF[];
203 extern char HELPFILE[];
204 extern char ABUSEFILE[];
205 extern char REPLYFILE[];
206 extern char USAGEFILE[];
207 extern char USAGELOG[];
208 extern char BLOCKFILE[];
209 extern char ADMKEYFILE[];
210 extern char KEYFILE[];
211 extern char PGPKEY[];
212 extern char DSAPARAMS[];
213 extern char DHPARAMS[];
214 extern char MIXRAND[];
215 extern char SECRING[];
216 extern char PUBRING[];
217 extern char IDLOG[];
218 extern char STATS[];
219 extern char DESTBLOCK[];
220 extern char DESTALLOW[];
221 extern char SOURCEBLOCK[];
222 extern char HDRFILTER[];
223 extern char REGULAR[];
224 extern char POOL[];
225 extern char TYPE1LIST[];
226 extern char TYPE2REL[];
227 extern char TYPE2LIST[];
228
229 extern char PGPREMPUBRING[];
230 extern char PGPREMPUBASC[];
231 extern char PGPREMSECRING[];
232 DLLIMPORT extern char NYMSECRING[];
233 extern char NYMDB[];
234
235 /* string constants */
236 #define remailer_type "Remailer-Type: Mixmaster "
237 #define begin_remailer "-----BEGIN REMAILER MESSAGE-----"
238 #define end_remailer "-----END REMAILER MESSAGE-----"
239 #define begin_key "-----Begin Mix Key-----"
240 #define end_key "-----End Mix Key-----"
241 #define begin_pgp "-----BEGIN PGP "
242 #define end_pgp "-----END PGP "
243 #define begin_pgpmsg "-----BEGIN PGP MESSAGE-----"
244 #define end_pgpmsg "-----END PGP MESSAGE-----"
245 #define begin_pgpkey "-----BEGIN PGP PUBLIC KEY BLOCK-----"
246 #define end_pgpkey "-----END PGP PUBLIC KEY BLOCK-----"
247 #define begin_pgpseckey "-----BEGIN PGP PRIVATE KEY BLOCK-----"
248 #define end_pgpseckey "-----END PGP PRIVATE KEY BLOCK-----"
249 #define begin_pgpsigned "-----BEGIN PGP SIGNED MESSAGE-----"
250 #define begin_pgpsig "-----BEGIN PGP SIGNATURE-----"
251 #define end_pgpsig "-----END PGP SIGNATURE-----"
252 #define info_beginpgp "=====BEGIN PGP MESSAGE====="
253 #define info_endpgp "=====END PGP MESSAGE====="
254 #define info_pgpsig "=====Sig: "
255
256
257 /***********************************************************************
258 * The following variables are read from mix.cfg, with default values
259 * defined in mix.c */
260
261 int REMAIL;
262 int MIX;
263 int PGP;
264 int UNENCRYPTED;
265 int REMIX;
266 int REPGP;
267 extern char MIXDIR[];
268 extern char POOLDIR[];
269 extern char SENDMAIL[];
270 extern char SENDANONMAIL[];
271 extern char SMTPRELAY[];
272 extern char NEWS[];
273 extern char MAILtoNEWS[];
274 extern char ORGANIZATION[];
275 extern char MID[];
276 extern char TYPE1[];
277 extern char ERRLOG[];
278 extern char NAME[];
279 extern char ADDRESS[];
280 extern char REMAILERADDR[];
281 extern char ANONADDR[];
282 extern char REMAILERNAME[];
283 extern char ANONNAME[];
284 extern char COMPLAINTS[];
285 extern int AUTOREPLY;
286 extern char HELONAME[];
287 extern char ENVFROM[];
288 extern char SHORTNAME[];
289 extern int POOLSIZE;
290 extern int RATE;
291 extern int MIDDLEMAN;
292 extern int AUTOBLOCK;
293 extern char FORWARDTO[];
294 extern int SIZELIMIT;
295 extern int INFLATEMAX;
296 extern int MAXRANDHOPS;
297 extern int BINFILTER;
298 extern int LISTSUPPORTED;
299 extern long PACKETEXP;
300 extern long IDEXP;
301 DLLIMPORT extern int VERBOSE;
302 extern long SENDPOOLTIME;
303 extern int NUMCOPIES;
304 extern char CHAIN[];
305 extern int DISTANCE;
306 extern int MINREL;
307 extern int RELFINAL;
308 extern long MAXLAT;
309 DLLIMPORT extern char PGPPUBRING[];
310 DLLIMPORT extern char PGPSECRING[];
311 extern char PASSPHRASE[];
312 extern long POP3TIME;
313 extern int POP3DEL;
314 extern int POP3SIZELIMIT;
315 extern char MAILBOX[];
316 extern char MAILIN[];
317 extern char MAILABUSE[];
318 extern char MAILBLOCK[];
319 extern char MAILUSAGE[];
320 extern char MAILANON[];
321 extern char MAILERROR[];
322 extern char MAILBOUNCE[];
323
324 #endif

  ViewVC Help
Powered by ViewVC 1.1.5