diff options
author | Werner Koch <[email protected]> | 2025-05-05 14:27:34 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2025-05-05 14:27:34 +0000 |
commit | f2d40473b522e348d96a70c089d2191d0b978098 (patch) | |
tree | a77c67f7ac0201b987e9046fb42b655bf887419a /src/gpgme.h.in | |
parent | Allow signing using an exactly specified subkey. (diff) | |
download | gpgme-f2d40473b522e348d96a70c089d2191d0b978098.tar.gz gpgme-f2d40473b522e348d96a70c089d2191d0b978098.zip |
Change timestamp fields from signed to unsigned long.
* src/gpgme.h.in (struct _gpgme_subkey): Chnage timestamp and expires.
(struct _gpgme_key_sig): Ditto.
(struct _gpgme_new_signature): Ditto.
--
Note that unsigned long has always been used for gpgme_signature_t.
A change to time_t would be a real ABI change and require may users of
gpgme to adjust their code. The signed/unsigned change is sufficient
and mostly invisible.
Diffstat (limited to 'src/gpgme.h.in')
-rw-r--r-- | src/gpgme.h.in | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gpgme.h.in b/src/gpgme.h.in index e56c293d..d870b4eb 100644 --- a/src/gpgme.h.in +++ b/src/gpgme.h.in @@ -612,10 +612,10 @@ struct _gpgme_subkey char *fpr; /* The creation timestamp, -1 if invalid, 0 if not available. */ - long int timestamp; + unsigned long int timestamp; /* The expiration timestamp, 0 if the subkey does not expire. */ - long int expires; + unsigned long int expires; /* The serial number of a smart card holding this key or NULL. */ char *card_number; @@ -671,10 +671,10 @@ struct _gpgme_key_sig char _keyid[16 + 1]; /* The creation timestamp, -1 if invalid, 0 if not available. */ - long int timestamp; + unsigned long int timestamp; /* The expiration timestamp, 0 if the subkey does not expire. */ - long int expires; + unsigned long int expires; /* Same as in gpgme_signature_t. */ gpgme_error_t status; @@ -1554,7 +1554,7 @@ struct _gpgme_new_signature unsigned long _obsolete_class; /* Signature creation time. */ - long int timestamp; + unsigned long int timestamp; /* The fingerprint of the signature. */ char *fpr; |