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

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

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

revision 294 by weaselp, Mon Sep 30 21:26:28 2002 UTC revision 332 by weaselp, Wed Oct 9 20:53:32 2002 UTC
# Line 6  Line 6 
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"
# Line 126  int pgp_mailenc(int mode, BUFFER *msg, c Line 126  int pgp_mailenc(int mode, BUFFER *msg, c
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);
# Line 344  int pgp_dearmor(BUFFER *in, BUFFER *out) Line 344  int pgp_dearmor(BUFFER *in, BUFFER *out)
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)

Legend:
Removed from v.294  
changed lines
  Added in v.332

  ViewVC Help
Powered by ViewVC 1.1.5