/[pkg-mixmaster]/trunk/Mix/Src/config.h
ViewVC logotype

Diff of /trunk/Mix/Src/config.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 62 by rabbi, Thu Jan 10 23:59:16 2002 UTC revision 182 by weaselp, Sun Aug 25 13:27:40 2002 UTC
# Line 6  Line 6 
6     details.     details.
7    
8     Configuration     Configuration
9     $Id: config.h,v 1.4 2002/01/10 23:59:16 rabbi Exp $ */     $Id: config.h,v 1.14 2002/08/25 13:27:40 weaselp Exp $ */
10    
11    
12  #ifndef _CONFIG_H  #ifndef _CONFIG_H
# Line 25  Line 25 
25   * "NOTE: The above From: line has not been authenticated!\n\n" */   * "NOTE: The above From: line has not been authenticated!\n\n" */
26  #define FROMDISCLAIMER ""  #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: */  /* Comment to be inserted when a binary attachment is filtered out: */
33  #define BINDISCLAIMER \  #define BINDISCLAIMER \
34   "[...]"   "[...]"
35    
 /* Passphrase used to protect our secret keys */  
 #ifndef PASSPHRASE  
 #define PASSPHRASE ""  
 #endif  
   
36  /* Character set for MIME-encoded mail header lines */  /* Character set for MIME-encoded mail header lines */
37  #define MIMECHARSET "iso-8859-1"  #define MIMECHARSET "iso-8859-1"
38  #if 1  #if 1
# Line 49  Line 48 
48  /* Use the RSA cryptosystem? */  /* Use the RSA cryptosystem? */
49  #define USE_RSA  #define USE_RSA
50  /* Use IDEA algorithm? (See file idea.txt) */  /* Use IDEA algorithm? (See file idea.txt) */
51  #define USE_IDEA  /* #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? */  /* Support the OpenPGP message format? */
55  #define USE_PGP  #define USE_PGP
56    
# Line 126  Line 127 
127  #error "The GUI requires Win32!"  #error "The GUI requires Win32!"
128  #endif  #endif
129    
130    #if defined(WIN32) && !defined(_USRDLL)
131    #define DLLIMPORT __declspec(dllimport)
132    #else
133    #define DLLIMPORT
134    #endif
135    
136  /** Constants *********************************************************/  /** Constants *********************************************************/
137    
138  /* Give up if a file is larger than BUFFER_MAX bytes: */  /* Give up if a file is larger than BUFFER_MAX bytes: */
# Line 135  Line 142 
142  #define LINELEN 128  #define LINELEN 128
143  #define BUFSIZE 4096  #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 ********************************************************/  /** file names ********************************************************/
154    
155  #define MIXCONF "mix.cfg"       /* mixmaster configuration file */  #define DEFAULT_MIXCONF "mix.cfg"      /* mixmaster configuration file */
156  #define DISCLAIMFILE "disclaim.txt"  #define DEFAULT_DISCLAIMFILE "disclaim.txt"
157  #define FROMDSCLFILE "fromdscl.txt"  #define DEFAULT_FROMDSCLFILE "fromdscl.txt"
158  #define POP3CONF "pop3.cfg"  #define DEFAULT_MSGFOOTERFILE "footer.txt"
159  #define HELPFILE "help.txt"  #define DEFAULT_POP3CONF "pop3.cfg"
160  #define ABUSEFILE "abuse.txt"  #define DEFAULT_HELPFILE "help.txt"
161  #define REPLYFILE "reply.txt"  #define DEFAULT_ABUSEFILE "abuse.txt"
162  #define USAGEFILE "usage.txt"  #define DEFAULT_REPLYFILE "reply.txt"
163  #define USAGELOG "usage.log"  #define DEFAULT_USAGEFILE "usage.txt"
164  #define BLOCKFILE "blocked.txt"  #define DEFAULT_USAGELOG "usage.log"
165  #define ADMKEYFILE "adminkey.txt"  #define DEFAULT_BLOCKFILE "blocked.txt"
166  #define KEYFILE "key.txt"  #define DEFAULT_ADMKEYFILE "adminkey.txt"
167  #define PGPKEY "pgpkey.txt"  #define DEFAULT_KEYFILE "key.txt"
168  #define DSAPARAMS "dsaparam.mix"  #define DEFAULT_PGPKEY "pgpkey.txt"
169  #define DHPARAMS "dhparam.mix"  #define DEFAULT_DSAPARAMS "dsaparam.mix"
170  #define MIXRAND "mixrand.bin"  #define DEFAULT_DHPARAMS "dhparam.mix"
171  #define SECRING "secring.mix"  #define DEFAULT_MIXRAND "mixrand.bin"
172  #define PUBRING "pubring.mix"  #define DEFAULT_SECRING "secring.mix"
173  #define IDLOG "id.log"  #define DEFAULT_PUBRING "pubring.mix"
174  #define STATS "stats.log"  #define DEFAULT_IDLOG "id.log"
175    #define DEFAULT_STATS "stats.log"
176  /* To enable multiple dest.blk files, edit the following line. */  /* To enable multiple dest.blk files, edit the following line. */
177  /* Filenames must be seperated by one space.                   */  /* Filenames must be seperated by one space.                   */
178  #define DESTBLOCK "dest.blk rab.blk"  #define DEFAULT_DESTBLOCK "dest.blk rab.blk"
179  #define DESTALLOW "dest.alw"  #define DEFAULT_DESTALLOW "dest.alw"
180  #define SOURCEBLOCK "source.blk"  #define DEFAULT_SOURCEBLOCK "source.blk"
181  #define HDRFILTER "header.blk"  #define DEFAULT_HDRFILTER "header.blk"
182  #define REGULAR "time.log"  #define DEFAULT_REGULAR "time.log"
183  #define POOL "pool"             /* remailer pool subdirectory */  #define DEFAULT_POOL "pool"            /* remailer pool subdirectory */
184  #define TYPE1LIST "rlist.txt"  #define DEFAULT_TYPE1LIST "rlist.txt"
185  #define TYPE2REL "mlist.txt"  #define DEFAULT_TYPE2REL "mlist.txt"
186  #ifdef SHORTNAMES  #ifdef SHORTNAMES
187  #define TYPE2LIST "type2.lis"  #define DEFAULT_TYPE2LIST "type2.lis"
188  #else  #else
189  #define TYPE2LIST "type2.list"  #define DEFAULT_TYPE2LIST "type2.list"
190  #endif  #endif
191    
192  #define PGPREMPUBRING "pubring.pgp"  #define DEFAULT_PGPREMPUBRING "pubring.pgp"
193  #define PGPREMPUBASC "pubring.asc"  #define DEFAULT_PGPREMPUBASC "pubring.asc"
194  #define PGPREMSECRING "secring.pgp"  #define DEFAULT_PGPREMSECRING "secring.pgp"
195  #define NYMSECRING "nymsec.pgp"  #define DEFAULT_NYMSECRING "nymsec.pgp"
196  #define NYMDB "secrets.mix"  #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 */  /* string constants */
236  #define remailer_type "Remailer-Type: Mixmaster "  #define remailer_type "Remailer-Type: Mixmaster "
# Line 191  Line 244 
244  #define end_pgpmsg "-----END PGP MESSAGE-----"  #define end_pgpmsg "-----END PGP MESSAGE-----"
245  #define begin_pgpkey "-----BEGIN PGP PUBLIC KEY BLOCK-----"  #define begin_pgpkey "-----BEGIN PGP PUBLIC KEY BLOCK-----"
246  #define end_pgpkey "-----END PGP PUBLIC KEY BLOCK-----"  #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-----"  #define begin_pgpsigned "-----BEGIN PGP SIGNED MESSAGE-----"
250  #define begin_pgpsig "-----BEGIN PGP SIGNATURE-----"  #define begin_pgpsig "-----BEGIN PGP SIGNATURE-----"
251  #define end_pgpsig "-----END PGP SIGNATURE-----"  #define end_pgpsig "-----END PGP SIGNATURE-----"
# Line 240  extern int SIZELIMIT; Line 295  extern int SIZELIMIT;
295  extern int INFLATEMAX;  extern int INFLATEMAX;
296  extern int MAXRANDHOPS;  extern int MAXRANDHOPS;
297  extern int BINFILTER;  extern int BINFILTER;
298    extern int LISTSUPPORTED;
299  extern long PACKETEXP;  extern long PACKETEXP;
300  extern long IDEXP;  extern long IDEXP;
301  extern int VERBOSE;  DLLIMPORT extern int VERBOSE;
302  extern long SENDPOOLTIME;  extern long SENDPOOLTIME;
303  extern int NUMCOPIES;  extern int NUMCOPIES;
304  extern char CHAIN[];  extern char CHAIN[];
# Line 250  extern int DISTANCE; Line 306  extern int DISTANCE;
306  extern int MINREL;  extern int MINREL;
307  extern int RELFINAL;  extern int RELFINAL;
308  extern long MAXLAT;  extern long MAXLAT;
309  extern char PGPPUBRING[];  DLLIMPORT extern char PGPPUBRING[];
310  extern char PGPSECRING[];  DLLIMPORT extern char PGPSECRING[];
311    extern char PASSPHRASE[];
312  extern long POP3TIME;  extern long POP3TIME;
313  extern int POP3DEL;  extern int POP3DEL;
314  extern int POP3SIZELIMIT;  extern int POP3SIZELIMIT;
315  extern char MAILBOX[];  extern char MAILBOX[];
316    extern char MAILIN[];
317  extern char MAILABUSE[];  extern char MAILABUSE[];
318  extern char MAILBLOCK[];  extern char MAILBLOCK[];
319  extern char MAILUSAGE[];  extern char MAILUSAGE[];

Legend:
Removed from v.62  
changed lines
  Added in v.182

  ViewVC Help
Powered by ViewVC 1.1.5