* Jonathan McDowell <noodles@earth.li>
*
* Copyright 2002 Project Purple
+ *
+ * $Id: add.c,v 1.12 2004/03/23 12:33:46 noodles Exp $
*/
#include <errno.h>
if (ctx.buffer == NULL) {
puts("Error: No keytext to add supplied.");
} else {
- readconfig();
+ readconfig(NULL);
initlogthing("add", config.logfile);
dearmor_openpgp_stream(buffer_fetchchar,
&ctx,
&packets);
if (packets != NULL) {
parse_keys(packets, &keys);
- initdb();
+ initdb(false);
printf("Got %d new keys.\n",
update_keys(&keys));
if (keys != NULL) {