2 * merge.h - Routines to merge OpenPGP public keys.
4 * Jonathan McDowell <noodles@earth.li>
6 * Copyright 2002 Project Purple
11 #include "keystructs.h"
14 * merge_keys - Takes 2 public keys and merges them.
15 * @a: The old key. The merged key is returned in this structure.
16 * @b: The new key. The changed from old to new keys are returned in this
19 * This function takes 2 keys and merges them. It then returns the merged
20 * key in a and the difference between this new key and the original a
21 * in b (ie newb contains the minimum amount of detail necessary to
22 * convert olda to newa). The intention is that olda is provided from
23 * internal storage and oldb from the remote user. newa is then stored in
24 * internal storage and newb is sent to all our keysync peers.
26 int merge_keys(struct openpgp_publickey *a, struct openpgp_publickey *b);