X-Git-Url: https://the.earth.li/gitweb/?a=blobdiff_plain;f=keydb.c;h=1a882386bf25933c4ea4ae5fa47853301ce5bd6b;hb=c063c72b0e63842f5466e0983183c98d4e05c54e;hp=deedc4994e5f4441938ab3ef709c4e44e46034ba;hpb=5cb163e87c7f0717aa94ca281a56e572c2a6c8f3;p=onak.git diff --git a/keydb.c b/keydb.c index deedc49..1a88238 100644 --- a/keydb.c +++ b/keydb.c @@ -155,33 +155,6 @@ struct ll *generic_cached_getkeysigs(struct onak_dbctx *dbctx, uint64_t keyid) return key->sigs; } -#ifdef NEED_GETFULLKEYID -/** - * getfullkeyid - Maps a 32bit key id to a 64bit one. - * @keyid: The 32bit keyid. - * - * This function maps a 32bit key id to the full 64bit one. It returns the - * full keyid. If the key isn't found a keyid of 0 is returned. - */ -uint64_t generic_getfullkeyid(struct onak_dbctx *dbctx, uint64_t keyid) -{ - struct openpgp_publickey *publickey = NULL; - - if (keyid < 0x100000000LL) { - dbctx->fetch_key_id(dbctx, keyid, &publickey, false); - if (publickey != NULL) { - get_keyid(publickey, &keyid); - free_publickey(publickey); - publickey = NULL; - } else { - keyid = 0; - } - } - - return keyid; -} -#endif - #ifdef NEED_UPDATEKEYS /** * update_keys - Takes a list of public keys and updates them in the DB.