From 88db69e1a964c9a36989e36fe5d972548432fb5c Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Wed, 12 May 2021 08:38:14 +0200 Subject: [PATCH] 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: 276187f6b62a73e92b1c20f589510f80ab9e88d2 Note that we assume that splitting a reserved 28 bit field into 3 fields does not change the ABI. --- src/gpgme.h.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gpgme.h.in b/src/gpgme.h.in index 6471f0ad..5c74afd6 100644 --- a/src/gpgme.h.in +++ b/src/gpgme.h.in @@ -650,9 +650,6 @@ struct _gpgme_key_sig /* The expiration timestamp, 0 if the subkey does not expire. */ long int expires; - /* The scope of a trust signature. Might be NULL. */ - char *trust_scope; - /* Same as in gpgme_signature_t. */ gpgme_error_t status; @@ -683,6 +680,9 @@ struct _gpgme_key_sig /* Internal to GPGME, do not use. */ 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;