}
hashes = (uint8_t **) unmarshal_array(buffer_fetchchar, &cgipostbuf,
- (void * (*)(int (*)(void *, size_t, void *), void *))
+ (void * (*)(size_t (*)(void *, size_t, void *), void *))
unmarshal_skshash, &count);
free(cgipostbuf.buffer);
catchsignals();
dbctx = config.dbinit(config.backend, false);
+ if (dbctx == NULL) {
+ doerror("Failed to open key database.");
+ }
+
if (dbctx->fetch_key_skshash == NULL) {
dbctx->cleanupdb(dbctx);
doerror("Can't fetch by skshash with this backend.");
puts("Content-Type: pgp/keys\n");
marshal_array(stdout_putchar, NULL,
- (void (*)(int (*)(void *, size_t, void *),
+ (void (*)(size_t (*)(void *, size_t, void *),
void *, const void *))
marshal_publickey, (void **) keys, found);
printf("\n");