You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by yl...@apache.org on 2024/03/14 15:03:00 UTC

svn commit: r1916300 - /httpd/httpd/trunk/modules/aaa/mod_autht_jwt.c

Author: ylavic
Date: Thu Mar 14 15:02:59 2024
New Revision: 1916300

URL: http://svn.apache.org/viewvc?rev=1916300&view=rev
Log:
mod_autht_jwt: Use unsigned rather than signed one-bit fields.

Or their non-zero value should be considered -1 rather than 1.


Modified:
    httpd/httpd/trunk/modules/aaa/mod_autht_jwt.c

Modified: httpd/httpd/trunk/modules/aaa/mod_autht_jwt.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/aaa/mod_autht_jwt.c?rev=1916300&r1=1916299&r2=1916300&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/aaa/mod_autht_jwt.c (original)
+++ httpd/httpd/trunk/modules/aaa/mod_autht_jwt.c Thu Mar 14 15:02:59 2024
@@ -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,