* Jonathan McDowell <noodles@earth.li>
*
* Copyright 2001-2002 Project Purple.
- *
- * $Id: gpgwww.c,v 1.14 2004/05/26 18:53:14 noodles Exp $
*/
#include <inttypes.h>
#include "armor.h"
#include "charfuncs.h"
+#include "cleanup.h"
#include "getcgi.h"
#include "hash.h"
#include "keydb.h"
return 1;
}
- while (pathlen < count) {
+ while ((!cleanup()) && (pathlen < count)) {
/*
* Fill the tree info up.
*/
curkey = findinhash(keyinfoa->parent);
while (curkey != NULL && curkey->keyid != 0) {
if (curkey->keyid != fullwant && fetch_key(
- curkey->keyid & 0xFFFFFFFF,
+ curkey->keyid,
&publickey, false)) {
flatten_publickey(publickey,
&packets,
/*
* Add the destination key to the list of returned keys.
*/
- if (fetch_key(fullwant & 0xFFFFFFFF, &publickey, false)) {
+ if (fetch_key(fullwant, &publickey, false)) {
flatten_publickey(publickey,
&packets,
&list_end);
readconfig(NULL);
initlogthing("gpgwww", config.logfile);
+ catchsignals();
initdb(true);
inithash();
logthing(LOGTHING_NOTICE, "Looking for path from 0x%llX to 0x%llX.",