| 6 |
details. |
details. |
| 7 |
|
|
| 8 |
OpenPGP messages |
OpenPGP messages |
| 9 |
$Id: pgp.c,v 1.15 2002/09/30 21:26:28 weaselp Exp $ */ |
$Id: pgp.c,v 1.16 2002/10/09 20:53:30 weaselp Exp $ */ |
| 10 |
|
|
| 11 |
|
|
| 12 |
#include "mix3.h" |
#include "mix3.h" |
| 126 |
|
|
| 127 |
/* Use the user keyring if pubring == NULL */ |
/* Use the user keyring if pubring == NULL */ |
| 128 |
err = pgp_encrypt(mode, body, to, uid, pass, |
err = pgp_encrypt(mode, body, to, uid, pass, |
| 129 |
pubring ? pubring : PGPPUBRING, secring); |
pubring ? pubring : PGPPUBRING, secring); |
| 130 |
buf_free(plainhdr); |
buf_free(plainhdr); |
| 131 |
buf_free(encrhdr); |
buf_free(encrhdr); |
| 132 |
buf_free(to); |
buf_free(to); |
| 344 |
crc1 = crc24(out); |
crc1 = crc24(out); |
| 345 |
err = buf_getline(in, line); |
err = buf_getline(in, line); |
| 346 |
if (line->length == 5 && line->data[0] == '=') { /* CRC */ |
if (line->length == 5 && line->data[0] == '=') { /* CRC */ |
| 347 |
line->ptr = 1; |
line->ptr = 1; |
| 348 |
err = decode(line, temp); |
err = decode(line, temp); |
| 349 |
crc2 = (((unsigned long)temp->data[0])<<16) | (((unsigned long)temp->data[1])<<8) | temp->data[2]; |
crc2 = (((unsigned long)temp->data[0])<<16) | (((unsigned long)temp->data[1])<<8) | temp->data[2]; |
| 350 |
if (crc1 == crc2) |
if (crc1 == crc2) |