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

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

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

revision 1 by rabbi, Wed Oct 31 08:19:51 2001 UTC revision 7 by rabbi, Fri Nov 2 21:25:34 2001 UTC
# Line 6  Line 6 
6     details.     details.
7    
8     Key management     Key management
9     $Id: keymgt.c,v 1.1 2001/10/31 08:19:53 rabbi Exp $ */     $Id: keymgt.c,v 1.2 2001/11/02 21:25:34 rabbi Exp $ */
10    
11    
12  #include "mix3.h"  #include "mix3.h"
# Line 310  int v2keymgt(force) Line 310  int v2keymgt(force)
310    if (found) {    if (found) {
311      id_encode(k1, line);      id_encode(k1, line);
312      if ((f = mix_openfile(KEYFILE, "w")) != NULL) {      if ((f = mix_openfile(KEYFILE, "w")) != NULL) {
313        fprintf(f, "%s %s %s %s %s\n", SHORTNAME,        fprintf(f, "%s %s %s %s %s%s\n", SHORTNAME,
314                REMAILERADDR, line, VERSION,                REMAILERADDR, line, VERSION,
315                  MIDDLEMAN ? "M" : "",
316                NEWS[0] == '\0' ? "C" : (strchr(NEWS, '@') ? "CNm" : "CNp"));                NEWS[0] == '\0' ? "C" : (strchr(NEWS, '@') ? "CNm" : "CNp"));
317        fprintf(f, "\n%s\n", begin_key);        fprintf(f, "\n%s\n", begin_key);
318        fprintf(f, "%s\n258\n", line);        fprintf(f, "%s\n258\n", line);

Legend:
Removed from v.1  
changed lines
  Added in v.7

  ViewVC Help
Powered by ViewVC 1.1.5