summaryrefslogtreecommitdiffstats
path: root/modules/aaa
diff options
context:
space:
mode:
authorYann Ylavic <ylavic@apache.org>2024-03-14 16:02:59 +0100
committerYann Ylavic <ylavic@apache.org>2024-03-14 16:02:59 +0100
commit2f598dc09d487e2cf75aed2156c0898fd3677e47 (patch)
tree516ad1322245c43d4e1491e572caee2b38c270e9 /modules/aaa
parentmod_crypto: Fix warnings about signed bit fields. (diff)
downloadapache2-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.c7
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,