diff options
author | Werner Koch <[email protected]> | 2017-03-28 09:40:44 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2017-03-28 09:41:30 +0000 |
commit | 813ae5fa2d712aa9679b791c67c9c1c43d36ffe4 (patch) | |
tree | 21356c212fafd181ec0a270dc012100e80a07541 /src/util.h | |
parent | qt: Disable testEncryptDecryptNowrap (diff) | |
download | gpgme-813ae5fa2d712aa9679b791c67c9c1c43d36ffe4.tar.gz gpgme-813ae5fa2d712aa9679b791c67c9c1c43d36ffe4.zip |
core: Prepare for new key listing data send by gpg.
* src/gpgme.h.in (gpgme_user_id_t): New fields 'origin' and
'last_update'.
(gpgme_key_t): New fields 'origin' and 'last_update'.
* src/conversion.c (_gpgme_parse_timestamp_ul): New.
* src/keylist.c (keylist_colon_handler): Parse fields 19 and 20.
* tests/run-keylist.c (main): Print new fields.
Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'src/util.h')
-rw-r--r-- | src/util.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -165,6 +165,9 @@ gpgme_off_t _gpgme_string_to_off (const char *string); point to the next non-parsed character in TIMESTRING. */ time_t _gpgme_parse_timestamp (const char *timestamp, char **endp); +/* Variant of _gpgme_parse_timestamp to return an unsigned long or 0 + * on error or missing timestamp. */ +unsigned long _gpgme_parse_timestamp_ul (const char *timestamp); gpgme_error_t _gpgme_map_gnupg_error (char *err); |