}
get_skshash(publickey, &hash);
- hashid = (hash.hash[0] << 24) + (hash.hash[1] << 16) +
- (hash.hash[2] << 8) + hash.hash[3];
+ hashid = hash.hash[0];
+ hashid <<= 8;
+ hashid |= hash.hash[1];
+ hashid <<= 8;
+ hashid |= hash.hash[2];
+ hashid <<= 8;
+ hashid |= hash.hash[3];
prove_path_to(hashid, "skshash", dbctx->config->location);
skshashpath(wbuffer, sizeof(wbuffer), &hash,
dbctx->config->location);
wl = wl->next;
}
+ llfree(wordlist, free);
+ wordlist = NULL;
subkeyids = keysubkeys(pk);
i = 0;
keypath(buffer, sizeof(buffer), keyid, dbctx->config->location);
unlink(buffer);
+ free_publickey(pk);
+
if (!intrans)
fs_endtrans(dbctx);
return 1;
/* Mmmm nothing to do here? */
close(privctx->lockfile_fd);
+
+ free(privctx);
+ dbctx->priv = NULL;
+ free(dbctx);
}
/**
dbctx->getkeysigs = generic_getkeysigs;
dbctx->cached_getkeysigs = generic_cached_getkeysigs;
dbctx->keyid2uid = generic_keyid2uid;
- dbctx->getfullkeyid = fs_getfullkeyid;
dbctx->iterate_keys = fs_iterate_keys;
return dbctx;