diff options
author | Yann Ylavic <ylavic@apache.org> | 2024-03-14 16:02:59 +0100 |
---|---|---|
committer | Yann Ylavic <ylavic@apache.org> | 2024-03-14 16:02:59 +0100 |
commit | 2f598dc09d487e2cf75aed2156c0898fd3677e47 (patch) | |
tree | 516ad1322245c43d4e1491e572caee2b38c270e9 /modules/aaa | |
parent | mod_crypto: Fix warnings about signed bit fields. (diff) | |
download | apache2-2f598dc09d487e2cf75aed2156c0898fd3677e47.tar.xz apache2-2f598dc09d487e2cf75aed2156c0898fd3677e47.zip |
mod_autht_jwt: Use unsigned rather than signed one-bit fields.
Or their non-zero value should be considered -1 rather than 1.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1916300 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/aaa')
-rw-r--r-- | modules/aaa/mod_autht_jwt.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/modules/aaa/mod_autht_jwt.c b/modules/aaa/mod_autht_jwt.c index f1754cfb5c..dedddece30 100644 --- a/modules/aaa/mod_autht_jwt.c +++ b/modules/aaa/mod_autht_jwt.c @@ -72,16 +72,15 @@ typedef struct { apr_hash_t *claims; apr_array_header_t *signs; apr_array_header_t *verifies; - int signs_set:1; - int verifies_set:1; - int fake_set:1; + unsigned int signs_set :1, + verifies_set :1; } auth_bearer_config_rec; typedef struct { const char *library; const char *params; apr_crypto_t **crypto; - int library_set; + unsigned int library_set :1; } auth_bearer_conf; static int auth_bearer_init(apr_pool_t *p, apr_pool_t *plog, apr_pool_t *ptemp, |