]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
mod_autht_jwt: Use unsigned rather than signed one-bit fields.
authorYann Ylavic <ylavic@apache.org>
Thu, 14 Mar 2024 15:02:59 +0000 (15:02 +0000)
committerYann Ylavic <ylavic@apache.org>
Thu, 14 Mar 2024 15:02:59 +0000 (15:02 +0000)
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

modules/aaa/mod_autht_jwt.c

index f1754cfb5c5e44f91db70d55633166c8dcd011a2..dedddece3036e42b9f78733c2b379fcfc32457d7 100644 (file)
@@ -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,