1: #include "xmail.h"
2: #include "pwd.h"
3: #include "sys/types.h"
4: MINT *a[42], *x, *b, *one, *c64, *t45, *z, *q, *r, *two, *t15;
5: char buf[256];
6: char maildir[] = { "/usr/spool/secretmail"};
7: main()
8: {
9: int uid, i;
10: FILE *fd;
11: char *myname = 0, fname[128];
12: struct passwd *pwent;
13:
14: uid = getuid();
15: if ((pwent = getpwuid(uid)) != (struct passwd *) 0)
16: myname = pwent->pw_name;
17: sprintf(fname, "%s/%s.key", maildir, myname);
18: comminit();
19: setup(getpass("Gimme key: "));
20: mkb();
21: mkx();
22: #ifdef debug
23: omout(b);
24: omout(x);
25: #endif
26: mka();
27: i = creat(fname, 0644);
28: if(i<0)
29: { perror("fname");
30: exit(1);
31: }
32: close(i);
33: fd = fopen(fname, "w");
34: for(i=0; i<42; i++)
35: nout(a[i], fd);
36: exit(0);
37: }
Defined functions
main
defined in line
7;
never used
Defined variables
buf
defined in line
5;
never used