summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
838b682)
Author: noodles
Date: 2003/10/03 23:03:02
Enable logging framework in splitkeys.
*
* Copyright 2003 Project Purple
*
*
* Copyright 2003 Project Purple
*
- * $Id: splitkeys.c,v 1.1 2003/09/30 21:16:14 noodles Exp $
+ * $Id: splitkeys.c,v 1.2 2003/10/03 23:03:02 noodles Exp $
#include "charfuncs.h"
#include "keystructs.h"
#include "charfuncs.h"
#include "keystructs.h"
#include "parsekey.h"
int main(int argc, char *argv[])
#include "parsekey.h"
int main(int argc, char *argv[])
fprintf(stderr,
"Couldn't parse %s as a number of keys!\n",
argv[1]);
fprintf(stderr,
"Couldn't parse %s as a number of keys!\n",
argv[1]);
+ readconfig();
+ initlogthing("splitkeys", config.logfile);
+
do {
result = read_openpgp_stream(stdin_getchar, NULL,
&packets, maxkeys);
do {
result = read_openpgp_stream(stdin_getchar, NULL,
&packets, maxkeys);
}
} while (packets != NULL);
}
} while (packets != NULL);
+ cleanuplogthing();
+ cleanupconfig();
+