hashinfo
HASHINFO hashinfo;
memset(&hashinfo, 0, sizeof(hashinfo));
db = dbopen(PATH_SPAMD_DB, O_EXLOCK|O_RDWR, 0600, DB_HASH, &hashinfo);
HASHINFO hashinfo;
memset(&hashinfo, 0, sizeof(hashinfo));
db = dbopen(dbname, O_EXLOCK|O_RDWR, 0600, DB_HASH, &hashinfo);
HASHINFO hashinfo;
memset(&hashinfo, 0, sizeof(hashinfo));
db = dbopen(dbname, O_EXLOCK|O_RDWR, 0600, DB_HASH, &hashinfo);
HASHINFO hashinfo;
memset(&hashinfo, 0, sizeof(hashinfo));
db = dbopen(dbname, O_EXLOCK|O_RDWR, 0600, DB_HASH, &hashinfo);
HASHINFO hashinfo;
memset(&hashinfo, 0, sizeof(hashinfo));
db = dbopen(dbname, O_EXLOCK|O_RDWR, 0600, DB_HASH, &hashinfo);
hashinfo_print(struct hashinfo *hi)
struct hashinfo *hia = *(struct hashinfo **)a;
struct hashinfo *hib = *(struct hashinfo **)b;
static struct hashinfo *
hashinfo_chain(struct hashinfo *head, struct hashinfo *entry)
struct hashinfo *hi = head;
hashinfo_chain_free(struct hashinfo *hi)
struct hashinfo *next;
hashinfo_chain_length(struct hashinfo *hi)
hashinfo_chain_sort(struct hashinfo **head)
struct hashinfo **list, *entry;
if ((list = reallocarray(NULL, len, sizeof(struct hashinfo *))) == NULL)
qsort(list, len, sizeof(struct hashinfo *), hashinfo_compare);
hashinfo_linkname(struct hashinfo *hi)
static struct hashinfo *
struct hashinfo *hi = NULL;
if ((hi = hashinfo(linkname, 0, NULL)) == NULL)
static struct hashinfo *
struct hashinfo *hi = NULL;
hi = hashinfo(filename, hash, fingerprint);
static struct hashinfo *
struct hashinfo *hi = NULL;
hi = hashinfo(filename, hash, fingerprint);
certhash_addlink(struct hashinfo **links, struct hashinfo *hi)
struct hashinfo *link = NULL;
if ((link = hashinfo(NULL, hi->hash, hi->fingerprint)) == NULL)
certhash_findlink(struct hashinfo *links, struct hashinfo *hi)
struct hashinfo *link;
certhash_index(struct hashinfo *head, const char *name)
struct hashinfo *last, *entry;
certhash_merge(struct hashinfo **links, struct hashinfo **certs,
struct hashinfo **crls)
struct hashinfo *cert, *crl;
certhash_link(struct dirent *dep, struct hashinfo **links)
struct hashinfo *hi = NULL;
certhash_file(struct dirent *dep, struct hashinfo **certs,
struct hashinfo **crls, const EVP_MD *digest)
struct hashinfo *hi = NULL;
struct hashinfo *links = NULL, *certs = NULL, *crls = NULL, *link;
struct hashinfo *reference;
struct hashinfo *next;
static struct hashinfo *
struct hashinfo *hi;
hashinfo_free(struct hashinfo *hi)
HASHINFO hashinfo;
memset(&hashinfo, 0, sizeof(hashinfo));
0600, DB_HASH, &hashinfo);