X-Git-Url: https://the.earth.li/gitweb/?a=blobdiff_plain;f=keydb_keyring.c;h=9550434c612d5b027f3cf4a369b001d696d8e9fe;hb=dfab9e96ee1fa4a10acf9c1cf644d7a4366a5af6;hp=0b865b57efb6554c7489b87b08fac03061869b16;hpb=c063c72b0e63842f5466e0983183c98d4e05c54e;p=onak.git diff --git a/keydb_keyring.c b/keydb_keyring.c index 0b865b5..9550434 100644 --- a/keydb_keyring.c +++ b/keydb_keyring.c @@ -85,7 +85,7 @@ static int keyring_fetch_key(struct onak_keyring_dbctx *privctx, if (index > privctx->count) return 0; - buf.buffer = privctx->keys[index].start; + buf.buffer = (char *) privctx->keys[index].start; buf.size = privctx->keys[index].len; buf.offset = 0; @@ -222,7 +222,10 @@ static int keyring_iterate_keys(struct onak_dbctx *dbctx, } static int keyring_update_keys(struct onak_dbctx *dbctx, - struct openpgp_publickey **keys, bool sendsync) + struct openpgp_publickey **keys, + struct keyarray *blacklist, + bool updateonly, + bool sendsync) { return 0; } @@ -232,7 +235,6 @@ static int keyring_update_keys(struct onak_dbctx *dbctx, */ #define NEED_KEYID2UID 1 #define NEED_GETKEYSIGS 1 -#define NEED_GET_FP 1 #include "keydb.c" static int keyring_parse_keys(struct onak_keyring_dbctx *privctx) @@ -264,7 +266,7 @@ static int keyring_parse_keys(struct onak_keyring_dbctx *privctx) len += privctx->file[pos + 2]; len += 192; len += 1; /* Header */ - } else if (len > 223 & len < 255) { + } else if (len > 223 && len < 255) { // Unsupported } else if (len == 255) { len = privctx->file[pos + 2];