/[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 29 - (show annotations) (download)
Tue Dec 11 20:56:07 2001 UTC (11 years, 5 months ago) by rabbi
File MIME type: text/plain
File size: 7170 byte(s)
Added dupicate address checking for MTAs that don't do duplicate checking.
ifdef'd out except for WIN32.
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.2 2001/12/11 20:56:07 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 /* Comment to be inserted when a binary attachment is filtered out: */
29 #define BINDISCLAIMER \
30 "[...]"
31
32 /* Passphrase used to protect our secret keys */
33 #ifndef PASSPHRASE
34 #define PASSPHRASE ""
35 #endif
36
37 /* Character set for MIME-encoded mail header lines */
38 #define MIMECHARSET "iso-8859-1"
39 #if 1
40 #define DEFLTENTITY ""
41 #else
42 #define DEFLTENTITY "text/plain; charset=" MIMECHARSET
43 #endif
44
45 /** Libraries and library functions **********************************/
46
47 /* Use the OpenSSL crypto library (required) */
48 #define USE_OPENSSL
49 /* Use the RSA cryptosystem? */
50 #define USE_RSA
51 /* Use IDEA algorithm? (See file idea.txt) */
52 #define USE_IDEA
53 /* Support the OpenPGP message format? */
54 #define USE_PGP
55
56 /* the following are defined in the Makefile */
57 #if 0
58 /* Use the PCRE regular expression library for destination blocking? */
59 #define USE_PCRE
60 /* Use zlib for compression? */
61 #define USE_ZLIB
62 /* Use ncurses? */
63 #define USE_NCURSES
64 /* Use the WIN GUI? */
65 #define USE_WINGUI
66 /* Use sockets to deliver mail */
67 #define USE_SOCK
68 #endif
69
70 /** System dependencies **********************************************/
71 /* Macros: UNIX for Unix-style systems
72 POSIX for systems with POSIX header files (including DJGPP)
73 MSDOS for 32 bit DOS
74 WIN32 for Windows 95/NT */
75
76 #if defined(_WIN32) && !defined(WIN32)
77 #define WIN32
78 #endif
79
80 #if defined(__RSXNT__) && !defined(WIN32)
81 #define WIN32
82 #endif
83
84 #if !defined(UNIX) && !defined(WIN32) && !defined(MSDOS)
85 #define UNIX
86 #endif
87
88 #if defined(UNIX) && !defined(POSIX)
89 #define POSIX
90 #endif
91
92 #ifdef UNIX
93 #define HAVE_UNAME
94 #define HAVE_GECOS
95 #define DEV_URANDOM "/dev/urandom"
96 #ifdef __OpenBSD__
97 #define DEV_RANDOM "/dev/srandom"
98 #else
99 #define DEV_RANDOM "/dev/random"
100 #endif
101 #endif
102
103 #if defined(POSIX) || defined(USE_SOCK)
104 #define HAVE_GETHOSTNAME
105 #endif
106
107 #ifdef POSIX
108 #define HAVE_TERMIOS
109 /* not a POSIX function, but avaiable on virtually all Unix systems */
110 #define HAVE_GETTIMEOFDAY
111 #endif
112
113 #ifdef linux
114 #define HAVE_GETDOMAINNAME
115 #endif
116
117 #ifdef MSDOS
118 #define SHORTNAMES
119 #ifndef WIN32
120 #define HAVE_GETKEY
121 #undef USE_SOCK
122 #endif
123 #endif
124
125 #ifdef WIN32
126 #define BROKEN_MTA
127 /* Used if the MTA can't delete duplicate addresses */
128 #endif
129
130 #if defined(USE_WINGUI) && !defined(WIN32)
131 #error "The GUI requires Win32!"
132 #endif
133
134 /** Constants *********************************************************/
135
136 /* Give up if a file is larger than BUFFER_MAX bytes: */
137 /* #define BUFFER_MAX 64*1024*1024 */
138
139 #define PATHMAX 512
140 #define LINELEN 128
141 #define BUFSIZE 4096
142
143 /** file names ********************************************************/
144
145 #define MIXCONF "mix.cfg" /* mixmaster configuration file */
146 #define DISCLAIMFILE "disclaim.txt"
147 #define FROMDSCLFILE "fromdscl.txt"
148 #define POP3CONF "pop3.cfg"
149 #define HELPFILE "help.txt"
150 #define ABUSEFILE "abuse.txt"
151 #define REPLYFILE "reply.txt"
152 #define USAGEFILE "usage.txt"
153 #define USAGELOG "usage.log"
154 #define BLOCKFILE "blocked.txt"
155 #define ADMKEYFILE "adminkey.txt"
156 #define KEYFILE "key.txt"
157 #define PGPKEY "pgpkey.txt"
158 #define DSAPARAMS "dsaparam.mix"
159 #define DHPARAMS "dhparam.mix"
160 #define MIXRAND "mixrand.bin"
161 #define SECRING "secring.mix"
162 #define PUBRING "pubring.mix"
163 #define IDLOG "id.log"
164 #define STATS "stats.log"
165 /* To enable multiple dest.blk files, edit the following line. */
166 /* Filenames must be seperated by one space. */
167 #define DESTBLOCK "dest.blk rab.blk"
168 #define DESTALLOW "dest.alw"
169 #define SOURCEBLOCK "source.blk"
170 #define HDRFILTER "header.blk"
171 #define REGULAR "time.log"
172 #define POOL "pool" /* remailer pool subdirectory */
173 #define TYPE1LIST "rlist.txt"
174 #define TYPE2REL "mlist.txt"
175 #ifdef SHORTNAMES
176 #define TYPE2LIST "type2.lis"
177 #else
178 #define TYPE2LIST "type2.list"
179 #endif
180
181 #define PGPREMPUBRING "pubring.pgp"
182 #define PGPREMPUBASC "pubring.asc"
183 #define PGPREMSECRING "secring.pgp"
184 #define NYMSECRING "nymsec.pgp"
185 #define NYMDB "secrets.mix"
186
187 /* string constants */
188 #define remailer_type "Remailer-Type: Mixmaster "
189 #define begin_remailer "-----BEGIN REMAILER MESSAGE-----"
190 #define end_remailer "-----END REMAILER MESSAGE-----"
191 #define begin_key "-----Begin Mix Key-----"
192 #define end_key "-----End Mix Key-----"
193 #define begin_pgp "-----BEGIN PGP "
194 #define end_pgp "-----END PGP "
195 #define begin_pgpmsg "-----BEGIN PGP MESSAGE-----"
196 #define end_pgpmsg "-----END PGP MESSAGE-----"
197 #define begin_pgpkey "-----BEGIN PGP PUBLIC KEY BLOCK-----"
198 #define end_pgpkey "-----END PGP PUBLIC KEY BLOCK-----"
199 #define begin_pgpsigned "-----BEGIN PGP SIGNED MESSAGE-----"
200 #define begin_pgpsig "-----BEGIN PGP SIGNATURE-----"
201 #define end_pgpsig "-----END PGP SIGNATURE-----"
202 #define info_beginpgp "=====BEGIN PGP MESSAGE====="
203 #define info_endpgp "=====END PGP MESSAGE====="
204 #define info_pgpsig "=====Sig: "
205
206
207 /***********************************************************************
208 * The following variables are read from mix.cfg, with default values
209 * defined in mix.c */
210
211 int REMAIL;
212 int MIX;
213 int PGP;
214 int UNENCRYPTED;
215 int REMIX;
216 extern char MIXDIR[];
217 extern char POOLDIR[];
218 extern char SENDMAIL[];
219 extern char SENDANONMAIL[];
220 extern char SMTPRELAY[];
221 extern char NEWS[];
222 extern char MAILtoNEWS[];
223 extern char ORGANIZATION[];
224 extern char MID[];
225 extern char TYPE1[];
226 extern char ERRLOG[];
227 extern char NAME[];
228 extern char ADDRESS[];
229 extern char REMAILERADDR[];
230 extern char ANONADDR[];
231 extern char REMAILERNAME[];
232 extern char ANONNAME[];
233 extern char COMPLAINTS[];
234 extern int AUTOREPLY;
235 extern char HELONAME[];
236 extern char ENVFROM[];
237 extern char SHORTNAME[];
238 extern int POOLSIZE;
239 extern int RATE;
240 extern int MIDDLEMAN;
241 extern int AUTOBLOCK;
242 extern char FORWARDTO[];
243 extern int SIZELIMIT;
244 extern int INFLATEMAX;
245 extern int MAXRANDHOPS;
246 extern int BINFILTER;
247 extern long PACKETEXP;
248 extern long IDEXP;
249 extern int VERBOSE;
250 extern long SENDPOOLTIME;
251 extern int NUMCOPIES;
252 extern char CHAIN[];
253 extern int DISTANCE;
254 extern int MINREL;
255 extern int RELFINAL;
256 extern long MAXLAT;
257 extern char PGPPUBRING[];
258 extern char PGPSECRING[];
259 extern long POP3TIME;
260 extern int POP3DEL;
261 extern int POP3SIZELIMIT;
262 extern char MAILBOX[];
263 extern char MAILABUSE[];
264 extern char MAILBLOCK[];
265 extern char MAILUSAGE[];
266 extern char MAILANON[];
267 extern char MAILERROR[];
268 extern char MAILBOUNCE[];
269
270 #endif

  ViewVC Help
Powered by ViewVC 1.1.5