1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00
Neal H. Walfield c45633a571 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 <neal@g10code.com>

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.
2016-02-19 16:13:00 +01:00
..
2016-02-14 14:46:30 +01:00
2014-10-31 14:21:34 +01:00
2015-08-06 17:00:41 +09:00
2007-07-04 19:49:40 +00:00
2014-11-13 12:01:42 +01:00
2015-05-01 13:58:18 +09:00
2015-02-04 09:15:34 +01:00
2016-01-27 14:00:15 +01:00
2015-02-04 09:15:34 +01:00
2016-01-18 11:20:15 +01:00
2016-01-19 16:25:31 +01:00
2015-10-05 19:48:47 +02:00
2015-12-21 20:56:29 +09:00
2016-01-22 10:54:10 +01:00
2016-01-18 12:15:09 +01:00
2015-11-17 12:50:22 +01:00
2015-11-17 12:50:22 +01:00
2008-12-12 08:54:50 +00:00
2016-01-18 11:20:15 +01:00
2015-12-22 15:03:56 +01:00
2015-11-17 12:50:22 +01:00
2016-01-06 08:49:45 +01:00
2015-11-19 15:48:01 +01:00
2014-01-29 17:45:05 +01:00