From f2d40473b522e348d96a70c089d2191d0b978098 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Mon, 5 May 2025 16:27:34 +0200 Subject: 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. --- src/gpgme.h.in | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src') 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; -- cgit v1.2.3