/[pkg-mixmaster]/trunk/Mix/Src/rem1.c
ViewVC logotype

Diff of /trunk/Mix/Src/rem1.c

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

revision 261 by rabbi, Wed Jul 24 07:48:50 2002 UTC revision 262 by rabbi, Wed Sep 18 23:26:17 2002 UTC
# Line 6  Line 6 
6     details.     details.
7    
8     Process Cypherpunk remailer messages     Process Cypherpunk remailer messages
9     $Id: rem1.c,v 1.6 2002/07/24 07:48:50 rabbi Exp $ */     $Id: rem1.c,v 1.7 2002/09/18 23:26:17 rabbi Exp $ */
10    
11    
12  #include "mix3.h"  #include "mix3.h"
# Line 72  void t1_esub(BUFFER *esub, BUFFER *subje Line 72  void t1_esub(BUFFER *esub, BUFFER *subje
72    buf_free(iv);    buf_free(iv);
73    buf_free(out);    buf_free(out);
74  }  }
75  #endif  #endif /* USE_IDEA */
76    
77  #define N(X) (isdigit(X) ? (X)-'0' : 0)  #define N(X) (isdigit(X) ? (X)-'0' : 0)
78    
# Line 222  header: Line 222  header:
222  #if USE_NSUB  #if USE_NSUB
223      else if (bufieq(field, "subject"))      else if (bufieq(field, "subject"))
224        buf_set(subject, content);        buf_set(subject, content);
225  #endif  #endif /* USE_NSUB */
226    }    }
227    
228    if (cutmarks->length > 0) {    if (cutmarks->length > 0) {
# Line 271  header: Line 271  header:
271        hdr = 0;        hdr = 0;
272        goto header;        goto header;
273      }      }
274  #endif  #endif /* USE_PGP */
275      if (testto->length == 0)      if (testto->length == 0)
276        errlog(ERRORMSG, "Can't decrypt PGP message.\n");        errlog(ERRORMSG, "Can't decrypt PGP message.\n");
277      buf_appends(test, "Can't decrypt PGP message.\n");      buf_appends(test, "Can't decrypt PGP message.\n");
# Line 281  header: Line 281  header:
281  #if 0  #if 0
282    if (err == -1)    if (err == -1)
283      goto end;      goto end;
284  #endif  #endif /* 0 */
285    
286    if (isline(line, HDRMARK) && (hdr == 0 || hdr == 1)) {    if (isline(line, HDRMARK) && (hdr == 0 || hdr == 1)) {
287      buf_getline(in, NULL);      buf_getline(in, NULL);
# Line 320  header: Line 320  header:
320  #ifdef USE_IDEA  #ifdef USE_IDEA
321      if (esub->length > 0)      if (esub->length > 0)
322        t1_esub(esub, subject);        t1_esub(esub, subject);
323  #endif  #endif /* USE_IDEA */
324      buf_appendf(out, "Subject: %b\n", subject);      buf_appendf(out, "Subject: %b\n", subject);
325    }    }
326    buf_cat(out, header);    buf_cat(out, header);
# Line 328  header: Line 328  header:
328    
329  #if 0  #if 0
330    inflate -= in->length;    inflate -= in->length;
331  #endif  #endif /* 0 */
332    if (inflate > 0) {    if (inflate > 0) {
333      buf_setrnd(temp, inflate * 3 / 4);      buf_setrnd(temp, inflate * 3 / 4);
334      encode(temp, 64);      encode(temp, 64);
# Line 373  header: Line 373  header:
373      buf_appends(out, EKMARK);      buf_appends(out, EKMARK);
374      buf_nl(out);      buf_nl(out);
375      buf_cat(out, temp);      buf_cat(out, temp);
376  #else  #else /* end of USE_PGP */
377      err = -1;      err = -1;
378  #endif  #endif /* Else if not USE_PGP */
379    }    }
380    
381    if (type == -1) {    if (type == -1) {

Legend:
Removed from v.261  
changed lines
  Added in v.262

  ViewVC Help
Powered by ViewVC 1.1.5