/[pkg-mixmaster]/branches/mixmaster_2_9_STABLE/Mix/Src/stats.c
ViewVC logotype

Diff of /branches/mixmaster_2_9_STABLE/Mix/Src/stats.c

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

revision 305 by rabbi, Wed Sep 11 21:03:05 2002 UTC revision 306 by rabbi, Fri Oct 4 23:49:17 2002 UTC
# Line 6  Line 6 
6     details.     details.
7    
8     Remailer statistics     Remailer statistics
9     $Id: stats.c,v 1.8.2.1 2002/09/11 21:03:05 rabbi Exp $ */     $Id: stats.c,v 1.8.2.2 2002/10/04 23:49:16 rabbi Exp $ */
10    
11    
12  #include "mix3.h"  #include "mix3.h"
# Line 224  int conf(BUFFER *out) Line 224  int conf(BUFFER *out)
224    FILE *f;    FILE *f;
225    BUFFER *b, *line;    BUFFER *b, *line;
226    int flag = 0;    int flag = 0;
227      REMAILER remailer[MAXREM];
228      int pgpkeyid[MAXREM];
229      int i, num;
230      char tmpline[LINELEN];
231    
232    b = buf_new();    b = buf_new();
233    line = buf_new();    line = buf_new();
234    
# Line 250  int conf(BUFFER *out) Line 255  int conf(BUFFER *out)
255      buf_appendf(out, "Maximum message size: %d kB\n", SIZELIMIT);      buf_appendf(out, "Maximum message size: %d kB\n", SIZELIMIT);
256    
257    /* display destinations to which delivery is explicitly permitted    /* display destinations to which delivery is explicitly permitted
258       when in middleman mode (contents of DESTALLOWf file.)  */       when in middleman mode (contents of DESTALLOW file.)  */
259    
260    if (MIDDLEMAN) {    if (MIDDLEMAN) {
261      f = mix_openfile(DESTALLOW, "r");      f = mix_openfile(DESTALLOW, "r");
# Line 313  int conf(BUFFER *out) Line 318  int conf(BUFFER *out)
318    
319    buf_nl(out);    buf_nl(out);
320    conf_premail(out);    conf_premail(out);
321    
322      if (LISTSUPPORTED) {
323       /* SUPPORTED CPUNK (TYPE I) REMAILERS
324        * 0xDC7532F9      "Heex Remailer <remailer@xmailer.ods.org>"
325        * 0x759ED311      "znar <ka5tkn@cox-internet.com>"
326        *
327        * SUPPORTED MIXMASTER (TYPE II) REMAILERS
328        * aarg remailer@aarg.net 475f3f9fe8da22896c10082695a92c2d 2.9b33 C
329        * anon mixmaster@anon.978.org 7384ba1eec585bfd7d2b0e9b307f0b1d 2.9b36 MCNm
330        */
331    
332        buf_nl(out);
333        if (PGP) {
334          buf_appends(out, "SUPPORTED CPUNK (TYPE I) REMAILERS\n");
335          num = t1_rlist(remailer);
336          pgp_rkeylist(remailer, pgpkeyid, num);
337          for (i=1; i<=num; i++) {
338          if (remailer[i].flags.pgp) {
339            snprintf(tmpline, LINELEN, "0x%08X    \"%s <%s>\"\n", pgpkeyid[i], remailer[i].name, remailer[i].addr);
340            tmpline[LINELEN-1] = '\0';
341            buf_appends(out, tmpline);
342          }
343          }
344          buf_nl(out);
345        }
346        if (MIX) {
347          buf_appends(out, "SUPPORTED MIXMASTER (TYPE II) REMAILERS\n");
348          prepare_type2list(out);
349          buf_nl(out);
350        }
351      }
352    
353    
354    if ( b ) buf_free(b);    if ( b ) buf_free(b);
355    buf_free(line);    buf_free(line);
356    return (0);    return (0);

Legend:
Removed from v.305  
changed lines
  Added in v.306

  ViewVC Help
Powered by ViewVC 1.1.5