X-Git-Url: http://the.earth.li/gitweb/?a=blobdiff_plain;f=keydb.h;h=aaca12201aea48bc8233e71c5854d6046dfb5a97;hb=7ca3c239d76ae7112c166f29c35e11620ba93d9f;hp=b3be902ff3fb4bd37b1d15f84dea03f725b5a4ac;hpb=3cdd1ba5400b97412d8e69fdcf59284b7cde6e28;p=onak.git diff --git a/keydb.h b/keydb.h index b3be902..aaca122 100644 --- a/keydb.h +++ b/keydb.h @@ -104,6 +104,17 @@ struct dbfuncs { int (*fetch_key_text)(const char *search, struct openpgp_publickey **publickey); +/** + * fetch_key_skshash - Tries to find the keys from an SKS hash + * @hash: The hash to search for. + * @publickey: A pointer to a structure to return the key in. + * + * This function looks for the key that is referenced by the supplied + * SKS hash and returns it. + */ + int (*fetch_key_skshash)(const struct skshash *hash, + struct openpgp_publickey **publickey); + /** * update_keys - Takes a list of public keys and updates them in the DB. * @keys: The keys to update in the DB.