core: Make sure to stay ABI compatible.

* src/gpgme.h.in (struct _gpgme_key_sig): Move trust_scope to the end
of the struct.
--

Fixes-commit: 276187f6b6

Note that we assume that splitting a reserved 28 bit field into 3
fields does not change the ABI.
This commit is contained in:
Werner Koch 2021-05-12 08:38:14 +02:00
parent 58a217b108
commit 88db69e1a9
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B

View File

@ -650,9 +650,6 @@ struct _gpgme_key_sig
/* The expiration timestamp, 0 if the subkey does not expire. */ /* The expiration timestamp, 0 if the subkey does not expire. */
long int expires; long int expires;
/* The scope of a trust signature. Might be NULL. */
char *trust_scope;
/* Same as in gpgme_signature_t. */ /* Same as in gpgme_signature_t. */
gpgme_error_t status; gpgme_error_t status;
@ -683,6 +680,9 @@ struct _gpgme_key_sig
/* Internal to GPGME, do not use. */ /* Internal to GPGME, do not use. */
gpgme_sig_notation_t _last_notation; gpgme_sig_notation_t _last_notation;
/* The scope of a trust signature. Might be NULL. */
char *trust_scope;
}; };
typedef struct _gpgme_key_sig *gpgme_key_sig_t; typedef struct _gpgme_key_sig *gpgme_key_sig_t;