/[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 585 - (show annotations) (download)
Fri Sep 19 00:51:41 2003 UTC (9 years, 8 months ago) by weaselp
File MIME type: text/plain
File size: 10170 byte(s)
Fix a problem that was introduced when doing away the ifdef rsa bits:

one if the ifdefs was not an ifdef but an ifndef
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.37 2003/09/19 00:51:41 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 /* the following are defined by Autoconf */
45 #if 0
46 /* Use the PCRE regular expression library for destination blocking? */
47 #define USE_PCRE
48 /* Use zlib for compression? */
49 #define USE_ZLIB
50 /* Use ncurses? */
51 #define USE_NCURSES
52 /* Use the WIN GUI? */
53 #define USE_WINGUI
54 /* Use sockets to deliver mail */
55 #define USE_SOCK
56 #endif
57
58 /** System dependencies **********************************************/
59 /* Macros: UNIX for Unix-style systems
60 POSIX for systems with POSIX header files (including DJGPP)
61 MSDOS for 32 bit DOS
62 WIN32 for Windows 95/NT */
63
64 #if defined(_WIN32) && !defined(WIN32)
65 #define WIN32
66 #endif
67
68 #if defined(__RSXNT__) && !defined(WIN32)
69 #define WIN32
70 #endif
71
72 #if !defined(UNIX) && !defined(WIN32) && !defined(MSDOS)
73 #define UNIX
74 #endif
75
76 #if defined(UNIX) && !defined(POSIX)
77 #define POSIX
78 #endif
79
80 #ifdef UNIX
81 #define DEV_URANDOM "/dev/urandom"
82 #ifdef __OpenBSD__
83 #define DEV_RANDOM "/dev/srandom"
84 #else
85 #define DEV_RANDOM "/dev/random"
86 #endif
87 #endif
88
89 #ifdef POSIX
90 # define HAVE_TERMIOS
91 #endif /* POSIX */
92
93 #ifdef MSDOS
94 #define SHORTNAMES
95 #ifndef WIN32
96 #define HAVE_GETKEY
97 #undef USE_SOCK
98 #endif
99 #endif
100
101 #if defined(USE_WINGUI) && !defined(WIN32)
102 #error "The GUI requires Win32!"
103 #endif
104
105 #if defined(WIN32) && !defined(_USRDLL)
106 #define DLLIMPORT __declspec(dllimport)
107 #else
108 #define DLLIMPORT
109 #endif
110
111 /* This block includes the config.h created by autoconf/configure.
112 * Eventually this old config.h stuff should be merged with the autoconf
113 * stuff perhaps. */
114 #ifdef HAVE_CONFIG_H
115 # include "../config.h"
116 #else /* End of HAVE_CONFIG_H */
117
118 /* Setup for stuff that happens when autoconf isn't run. This should be
119 * removed once we finally nuke that damn Install script. */
120
121 /** Libraries and library functions **********************************/
122
123 /* Use the OpenSSL crypto library (required) */
124 #define USE_OPENSSL
125 /* Use IDEA algorithm? (See file idea.txt) */
126 /* #define USE_IDEA */
127 /* Use AES algorithm? - should be handled by Install script setting compiler option -DUSE_AES */
128 /* #define USE_AES */
129 /* Support the OpenPGP message format? */
130 /* #define USE_PGP */
131
132 #ifndef WIN32
133 # define HAVE_SETENV 1
134 #endif
135
136 #ifdef UNIX
137 # define HAVE_UNAME
138 # define HAVE_GECOS
139 #endif
140
141 #if defined(POSIX) || defined(USE_SOCK)
142 # define HAVE_GETHOSTNAME
143 #endif
144
145 #ifdef POSIX
146 /* not a POSIX function, but avaiable on virtually all Unix systems */
147 # define HAVE_GETTIMEOFDAY
148 #endif
149
150 #ifdef linux
151 # define HAVE_GETDOMAINNAME
152 #endif
153
154 #endif /* End of not HAVE_CONFIG_H */
155
156 /** Constants *********************************************************/
157
158 /* Give up if a file is larger than BUFFER_MAX bytes: */
159 /* #define BUFFER_MAX 64*1024*1024 */
160
161 #define PATHMAX 512
162 #define LINELEN 128
163 #define BUFSIZE 4096
164
165 /** if it is a systemwide installation defined GLOBALMIXCONF **********/
166 /* #define GLOBALMIXCONF "/etc/mix.cfg" */
167
168 /* The path to append to a user's homedirectory for his local Mix dir */
169 #ifndef HOMEMIXDIR
170 #define HOMEMIXDIR "Mix"
171 #endif
172
173 /** file names ********************************************************/
174
175 #define DEFAULT_MIXCONF "mix.cfg" /* mixmaster configuration file */
176 #define DEFAULT_DISCLAIMFILE "disclaim.txt"
177 #define DEFAULT_FROMDSCLFILE "fromdscl.txt"
178 #define DEFAULT_MSGFOOTERFILE "footer.txt"
179 #define DEFAULT_POP3CONF "pop3.cfg"
180 #define DEFAULT_HELPFILE "help.txt"
181 #define DEFAULT_REQUESTDIR "requests"
182 #define DEFAULT_ABUSEFILE "abuse.txt"
183 #define DEFAULT_REPLYFILE "reply.txt"
184 #define DEFAULT_USAGEFILE "usage.txt"
185 #define DEFAULT_USAGELOG "usage.log"
186 #define DEFAULT_BLOCKFILE "blocked.txt"
187 #define DEFAULT_ADMKEYFILE "adminkey.txt"
188 #define DEFAULT_KEYFILE "key.txt"
189 #define DEFAULT_PGPKEY "pgpkey.txt"
190 #define DEFAULT_DSAPARAMS "dsaparam.mix"
191 #define DEFAULT_DHPARAMS "dhparam.mix"
192 #define DEFAULT_MIXRAND "mixrand.bin"
193 #define DEFAULT_SECRING "secring.mix"
194 #define DEFAULT_PUBRING "pubring.mix"
195 #define DEFAULT_IDLOG "id.log"
196 #define DEFAULT_STATS "stats.log"
197 #define DEFAULT_PGPMAXCOUNT "pgpmaxcount.log"
198 /* To enable multiple dest.blk files, edit the following line. */
199 /* Filenames must be seperated by one space. */
200 #define DEFAULT_DESTBLOCK "dest.blk rab.blk"
201 #define DEFAULT_DESTALLOW "dest.alw"
202 #define DEFAULT_SOURCEBLOCK "source.blk"
203 #define DEFAULT_HDRFILTER "header.blk"
204 #define DEFAULT_REGULAR "time.log"
205 #define DEFAULT_POOL "pool" /* remailer pool subdirectory */
206 #define DEFAULT_TYPE1LIST "rlist.txt"
207 #define DEFAULT_TYPE2REL "mlist.txt"
208 #ifdef SHORTNAMES
209 #define DEFAULT_TYPE2LIST "type2.lis"
210 #else
211 #define DEFAULT_TYPE2LIST "type2.list"
212 #endif
213 #define DEFAULT_PIDFILE "mix.pid"
214
215 #define DEFAULT_PGPREMPUBRING "pubring.pgp"
216 #define DEFAULT_PGPREMPUBASC "pubring.asc"
217 #define DEFAULT_PGPREMSECRING "secring.pgp"
218 #define DEFAULT_NYMSECRING "nymsec.pgp"
219 #define DEFAULT_NYMDB "secrets.mix"
220 #define DEFAULT_STAREX "starex.txt"
221
222 extern char MIXCONF[];
223 extern char DISCLAIMFILE[];
224 extern char FROMDSCLFILE[];
225 extern char MSGFOOTERFILE[];
226 extern char POP3CONF[];
227 extern char HELPFILE[];
228 extern char REQUESTDIR[];
229 extern char ABUSEFILE[];
230 extern char REPLYFILE[];
231 extern char USAGEFILE[];
232 extern char USAGELOG[];
233 extern char BLOCKFILE[];
234 extern char ADMKEYFILE[];
235 extern char KEYFILE[];
236 extern char PGPKEY[];
237 extern char DSAPARAMS[];
238 extern char DHPARAMS[];
239 extern char MIXRAND[];
240 extern char SECRING[];
241 extern char PUBRING[];
242 extern char IDLOG[];
243 extern char STATS[];
244 extern char PGPMAXCOUNT[];
245 extern char DESTBLOCK[];
246 extern char DESTALLOW[];
247 extern char SOURCEBLOCK[];
248 extern char HDRFILTER[];
249 extern char REGULAR[];
250 extern char POOL[];
251 extern char TYPE1LIST[];
252 extern char TYPE2REL[];
253 extern char TYPE2LIST[];
254 extern char PIDFILE[];
255 extern char STAREX[];
256
257 extern char PGPREMPUBRING[];
258 extern char PGPREMPUBASC[];
259 extern char PGPREMSECRING[];
260 DLLIMPORT extern char NYMSECRING[];
261 extern char NYMDB[];
262
263 /* string constants */
264 #define remailer_type "Remailer-Type: Mixmaster "
265 #define mixmaster_protocol "2"
266 #define begin_remailer "-----BEGIN REMAILER MESSAGE-----"
267 #define end_remailer "-----END REMAILER MESSAGE-----"
268 #define begin_key "-----Begin Mix Key-----"
269 #define end_key "-----End Mix Key-----"
270 #define begin_pgp "-----BEGIN PGP "
271 #define end_pgp "-----END PGP "
272 #define begin_pgpmsg "-----BEGIN PGP MESSAGE-----"
273 #define end_pgpmsg "-----END PGP MESSAGE-----"
274 #define begin_pgpkey "-----BEGIN PGP PUBLIC KEY BLOCK-----"
275 #define end_pgpkey "-----END PGP PUBLIC KEY BLOCK-----"
276 #define begin_pgpseckey "-----BEGIN PGP PRIVATE KEY BLOCK-----"
277 #define end_pgpseckey "-----END PGP PRIVATE KEY BLOCK-----"
278 #define begin_pgpsigned "-----BEGIN PGP SIGNED MESSAGE-----"
279 #define begin_pgpsig "-----BEGIN PGP SIGNATURE-----"
280 #define end_pgpsig "-----END PGP SIGNATURE-----"
281 #define info_beginpgp "=====BEGIN PGP MESSAGE====="
282 #define info_endpgp "=====END PGP MESSAGE====="
283 #define info_pgpsig "=====Sig: "
284
285
286 /***********************************************************************
287 * The following variables are read from mix.cfg, with default values
288 * defined in mix.c */
289
290 int REMAIL;
291 int MIX;
292 int PGP;
293 int UNENCRYPTED;
294 int REMIX;
295 int REPGP;
296 extern char MIXDIR[];
297 extern char POOLDIR[];
298 extern char EXTFLAGS[];
299 extern char SENDMAIL[];
300 extern char SENDANONMAIL[];
301 extern char PRECEDENCE[];
302 extern char SMTPRELAY[];
303 extern char SMTPUSERNAME[];
304 extern char SMTPPASSWORD[];
305 extern char NEWS[];
306 extern char MAILtoNEWS[];
307 extern char ORGANIZATION[];
308 extern char MID[];
309 extern char TYPE1[];
310 extern char ERRLOG[];
311 extern char NAME[];
312 extern char ADDRESS[];
313 extern char REMAILERADDR[];
314 extern char ANONADDR[];
315 extern char REMAILERNAME[];
316 extern char ANONNAME[];
317 extern char COMPLAINTS[];
318 extern int AUTOREPLY;
319 extern char HELONAME[];
320 extern char ENVFROM[];
321 extern char SHORTNAME[];
322 extern int POOLSIZE;
323 extern int RATE;
324 extern int INDUMMYP;
325 extern int OUTDUMMYP;
326 extern int MIDDLEMAN;
327 extern int AUTOBLOCK;
328 extern int STATSDETAILS;
329 extern char FORWARDTO[];
330 extern int SIZELIMIT;
331 extern int INFLATEMAX;
332 extern int MAXRANDHOPS;
333 extern int BINFILTER;
334 extern int LISTSUPPORTED;
335 extern long PACKETEXP;
336 extern long IDEXP;
337 DLLIMPORT extern int VERBOSE;
338 extern long SENDPOOLTIME;
339 extern long MAILINTIME;
340 extern long KEYLIFETIME;
341 extern long KEYOVERLAPPERIOD;
342 extern long KEYGRACEPERIOD;
343 extern int NUMCOPIES;
344 extern char CHAIN[];
345 extern int DISTANCE;
346 extern int MINREL;
347 extern int RELFINAL;
348 extern long MAXLAT;
349 DLLIMPORT extern char PGPPUBRING[];
350 DLLIMPORT extern char PGPSECRING[];
351 DLLIMPORT extern char PASSPHRASE[];
352 extern long POP3TIME;
353 extern int POP3DEL;
354 extern int POP3SIZELIMIT;
355 extern char MAILBOX[];
356 extern char MAILIN[];
357 extern char MAILABUSE[];
358 extern char MAILBLOCK[];
359 extern char MAILUSAGE[];
360 extern char MAILANON[];
361 extern char MAILERROR[];
362 extern char MAILBOUNCE[];
363 extern int CLIENTAUTOFLUSH;
364 extern int MAXRECIPIENTS;
365
366 DLLIMPORT extern char ENTEREDPASSPHRASE[LINELEN];
367
368 #endif

  ViewVC Help
Powered by ViewVC 1.1.5