X-Git-Url: https://the.earth.li/gitweb/?a=blobdiff_plain;f=keydb_file.c;h=1d9b081e726ba38f3f52202ef5bb74c859171320;hb=e02c731dfbb288c736f2cd09a9b6df0507c59ddd;hp=9784ecfcdcc93748b3d0d7eac2dc926dfbb7b97b;hpb=8e58a1769ce5e492dd68904dfc81b6e077fc2a3a;p=onak.git diff --git a/keydb_file.c b/keydb_file.c index 9784ecf..1d9b081 100644 --- a/keydb_file.c +++ b/keydb_file.c @@ -20,7 +20,7 @@ #include "keystructs.h" #include "ll.h" #include "mem.h" -#include "onak_conf.h" +#include "onak-conf.h" #include "parsekey.h" /** @@ -34,9 +34,9 @@ static int keydb_fetchchar(void *fd, size_t count, unsigned char *c) /** * keydb_putchar - Puts a char to a file. */ -static int keydb_putchar(void *fd, unsigned char c) +static int keydb_putchar(void *fd, size_t count, unsigned char *c) { - return !(write( *(int *) fd, &c, sizeof(c))); + return !(write( *(int *) fd, c, count)); } /** @@ -143,4 +143,5 @@ int delete_key(uint64_t keyid) */ #define NEED_KEYID2UID 1 #define NEED_GETKEYSIGS 1 +#define NEED_GETFULLKEYID 1 #include "keydb.c"