diff options
author | NIIBE Yutaka <[email protected]> | 2023-09-26 04:43:24 +0000 |
---|---|---|
committer | NIIBE Yutaka <[email protected]> | 2023-09-26 04:43:24 +0000 |
commit | 459bd577fc5f10aaa397c679af4611ef54163bd7 (patch) | |
tree | c1253e63bb27de40b685dc166f6dc3e0e53cb21f /agent/trustlist.c | |
parent | agent: Initialize FP for the case of error return. (diff) | |
download | gnupg-459bd577fc5f10aaa397c679af4611ef54163bd7.tar.gz gnupg-459bd577fc5f10aaa397c679af4611ef54163bd7.zip |
agent,common,gpg: Use unsigned int for 1-bit field.
* agent/trustlist.c (struct trustitem_s): Use unsigned int.
* common/audit.c (struct log_item_s): Likewise.
* g10/packet.h (struct seckey_info): Likewise.
--
Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to 'agent/trustlist.c')
-rw-r--r-- | agent/trustlist.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/agent/trustlist.c b/agent/trustlist.c index 330f233b8..fce23de15 100644 --- a/agent/trustlist.c +++ b/agent/trustlist.c @@ -38,14 +38,14 @@ struct trustitem_s { struct { - int disabled:1; /* This entry is disabled. */ - int for_pgp:1; /* Set by '*' or 'P' as first flag. */ - int for_smime:1; /* Set by '*' or 'S' as first flag. */ - int relax:1; /* Relax checking of root certificate + unsigned int disabled:1; /* This entry is disabled. */ + unsigned int for_pgp:1; /* Set by '*' or 'P' as first flag. */ + unsigned int for_smime:1; /* Set by '*' or 'S' as first flag. */ + unsigned int relax:1; /* Relax checking of root certificate constraints. */ - int cm:1; /* Use chain model for validation. */ - int qual:1; /* Root CA for qualified signatures. */ - int de_vs:1; /* Root CA for de-vs compliant PKI. */ + unsigned int cm:1; /* Use chain model for validation. */ + unsigned int qual:1; /* Root CA for qualified signatures. */ + unsigned int de_vs:1; /* Root CA for de-vs compliant PKI. */ } flags; unsigned char fpr[20]; /* The binary fingerprint. */ }; |