aboutsummaryrefslogtreecommitdiffstats
path: root/g10/keyedit.c
diff options
context:
space:
mode:
authorNeal H. Walfield <[email protected]>2016-02-19 13:48:56 +0000
committerNeal H. Walfield <[email protected]>2016-02-19 15:13:00 +0000
commitc45633a571bf663bc7f3610fc481acded6acfc19 (patch)
tree4f018128b3528d725717bdcf1102dc6d7fb9d236 /g10/keyedit.c
parentgpgparsemail: Allow weirdly-mixed pkcs7 signatures. (diff)
downloadgnupg-c45633a571bf663bc7f3610fc481acded6acfc19.tar.gz
gnupg-c45633a571bf663bc7f3610fc481acded6acfc19.zip
gpg: Add accessor & utility functions for pk->keyid and pk->main_keyid.
* g10/keydb.h (keyid_cmp): New function. * g10/keyid.c (pk_keyid): New function. (pk_main_keyid): New function. (keyid_copy): New function. (pk_keyid_str): New function. * g10/packet.h (PKT_public_key): Update comments for main_keyid and keyid. -- Signed-off-by: Neal H. Walfield <[email protected]> Before accessing pk->keyid, it is necessary to call keyid_from_pk (pk, NULL) to ensure that pk->keyid is valid. Because it is easy to forget to do this, these accessor functions take care of it.
Diffstat (limited to 'g10/keyedit.c')
0 files changed, 0 insertions, 0 deletions