X-Git-Url: https://the.earth.li/gitweb/?a=blobdiff_plain;f=merge.h;h=770da9eee3f331fdcd00e25ddd0dcc765d7cef45;hb=5d25774c5cd9f80709f852f79bce26d582fad360;hp=cabbc1886a35db8e26654690ba065b51f4185db7;hpb=a57a146ebc3f15f1ba2dfe8ecb9b59702fb8f799;p=onak.git diff --git a/merge.h b/merge.h index cabbc18..770da9e 100644 --- a/merge.h +++ b/merge.h @@ -10,6 +10,16 @@ #include "keystructs.h" +/** + * compare_packets - Check to see if 2 OpenPGP packets are the same. + * @a: The first packet to compare. + * @b: The second packet to compare. + * + * Takes 2 packets and returns 0 if they are the same, -1 if a is + * less than b, or 1 if a is greater than b. + */ +int compare_packets(struct openpgp_packet *a, struct openpgp_packet *b); + /** * merge_keys - Takes 2 public keys and merges them. * @a: The old key. The merged key is returned in this structure.