Skip to content

Commit

Permalink
mod_autht_jwt: Use unsigned rather than signed one-bit fields.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
ylavic committed Mar 14, 2024
1 parent 9ef9e5a commit 2f598dc
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions modules/aaa/mod_autht_jwt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 2f598dc

Please sign in to comment.