X-Git-Url: http://the.earth.li/gitweb/?a=blobdiff_plain;f=keyid.h;h=642bd59079b9cdda7a8252f976151c363422f736;hb=e17ef1fac72bcfeff58e7c88af18eea6f9d6bc85;hp=47f7d163beabbe8f2d45d3c1ecedc7e8884dd937;hpb=5cb3cfdb9d8caa6d7a4a1979c50c46896957b934;p=onak.git diff --git a/keyid.h b/keyid.h index 47f7d16..642bd59 100644 --- a/keyid.h +++ b/keyid.h @@ -25,6 +25,16 @@ #include "keystructs.h" #include "onak.h" +/** + * fingerprint2keyid - convert a fingerprint to a keyid + * @fingerprint: The fingerprint structure to convert + * @returns: 64 bit keyid + * + * This function returns the key id for a given fingerprint. Currently + * only works for v4 fingerprints. + */ +uint64_t fingerprint2keyid(struct openpgp_fingerprint *fingerprint); + /** * get_keyid - Given a public key returns the keyid. * @publickey: The key to calculate the id for.