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