| 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" |
| 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 |
|
|
| 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) { |
| 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"); |
| 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); |
| 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); |
| 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); |
| 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) { |