summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
6afb1be)
Author: noodles
Date: 2004/05/26 18:53:14
Add logging for the various CGI interfaces.
*
* Copyright 2002 Project Purple
*
*
* Copyright 2002 Project Purple
*
- * $Id: add.c,v 1.12 2004/03/23 12:33:46 noodles Exp $
+ * $Id: add.c,v 1.13 2004/05/26 18:53:14 noodles Exp $
int main(int argc, char *argv[])
{
int main(int argc, char *argv[])
{
- struct openpgp_packet_list *packets = NULL;
- struct openpgp_publickey *keys = NULL;
- char **params = NULL;
- struct buffer_ctx ctx;
- int i;
+ struct openpgp_packet_list *packets = NULL;
+ struct openpgp_publickey *keys = NULL;
+ char **params = NULL;
+ struct buffer_ctx ctx;
+ int count = 0;
+ int i;
memset(&ctx, 0, sizeof(ctx));
memset(&ctx, 0, sizeof(ctx));
if (packets != NULL) {
parse_keys(packets, &keys);
initdb(false);
if (packets != NULL) {
parse_keys(packets, &keys);
initdb(false);
- printf("Got %d new keys.\n",
- update_keys(&keys));
+ count = update_keys(&keys);
+ printf("Got %d new keys.\n", count);
+ logthing(LOGTHING_NOTICE, "Got %d new keys.",
+ count);
if (keys != NULL) {
sendkeysync(keys);
free_publickey(keys);
if (keys != NULL) {
sendkeysync(keys);
free_publickey(keys);
*
* Copyright 2001-2002 Project Purple.
*
*
* Copyright 2001-2002 Project Purple.
*
- * $Id: gpgwww.c,v 1.13 2004/03/23 12:33:46 noodles Exp $
+ * $Id: gpgwww.c,v 1.14 2004/05/26 18:53:14 noodles Exp $
initlogthing("gpgwww", config.logfile);
initdb(true);
inithash();
initlogthing("gpgwww", config.logfile);
initdb(true);
inithash();
+ logthing(LOGTHING_NOTICE, "Looking for path from 0x%llX to 0x%llX.",
+ from,
+ to);
dofindpath(from, to, true, 3);
destroyhash();
cleanupdb();
dofindpath(from, to, true, 3);
destroyhash();
cleanupdb();
*
* Copyright 2002 Project Purple
*
*
* Copyright 2002 Project Purple
*
- * $Id: lookup.c,v 1.13 2004/03/23 12:33:47 noodles Exp $
+ * $Id: lookup.c,v 1.14 2004/05/26 18:53:14 noodles Exp $
initdb(true);
switch (op) {
case OP_GET:
initdb(true);
switch (op) {
case OP_GET:
+ logthing(LOGTHING_NOTICE, "Getting keyid %llX",
+ keyid);
if (fetch_key(keyid, &publickey, false)) {
puts("<pre>");
flatten_publickey(publickey,
if (fetch_key(keyid, &publickey, false)) {
puts("<pre>");
flatten_publickey(publickey,