/[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 102 - (hide annotations) (download)
Wed Jul 24 07:48:50 2002 UTC (10 years, 10 months ago) by rabbi
File MIME type: text/plain
File size: 7131 byte(s)
We have changed the compile-time option PASSPHRASE to be named
COMPILEDPASS. We have changed the configuration file option PASS_PHRASE to
be named PASSPHRASE. We have added documentation for the new configuration
file option and made changes in the man page to reflect the name change.

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

  ViewVC Help
Powered by ViewVC 1.1.5