File tree Expand file tree Collapse file tree 2 files changed +14
-9
lines changed
Expand file tree Collapse file tree 2 files changed +14
-9
lines changed Original file line number Diff line number Diff line change @@ -60,15 +60,19 @@ typedef oauth2_jose_jwk_list_t *(
6060typedef struct oauth2_jose_jwks_provider_t {
6161 oauth2_jose_jwks_provider_type_t type ;
6262 oauth2_jose_jwks_resolve_cb_t * resolve ;
63- union {
64- oauth2_uri_ctx_t * jwks_uri ;
65- oauth2_jose_jwk_list_t * jwks ;
66- struct {
67- char * alb_arn ;
68- char * alb_base_url ;
69- };
70- };
71- // struct oauth2_jose_jwks_provider_t *next;
63+
64+ // NB: avoid union because of compiler/memory issues
65+
66+ // OAUTH2_JOSE_JWKS_PROVIDER_JWKS_URI and
67+ // OAUTH2_JOSE_JWKS_PROVIDER_ECKEY_URI
68+ oauth2_uri_ctx_t * jwks_uri ;
69+
70+ // OAUTH2_JOSE_JWKS_PROVIDER_LIST
71+ oauth2_jose_jwk_list_t * jwks ;
72+
73+ // OAUTH2_JOSE_JWKS_PROVIDER_AWS_ALB
74+ char * alb_arn ;
75+ char * alb_base_url ;
7276} oauth2_jose_jwks_provider_t ;
7377
7478_OAUTH2_CFG_CTX_TYPE_START (oauth2_jose_jwt_verify_ctx )
Original file line number Diff line number Diff line change @@ -827,6 +827,7 @@ START_TEST(test_oauth2_verify_aws_alb)
827827 ck_assert_int_eq (rc , true);
828828
829829 oauth2_cfg_token_verify_free (_log , verify );
830+ oauth2_mem_free (options );
830831 oauth2_mem_free (url );
831832 json_decref (json_payload );
832833}
You can’t perform that action at this time.
0 commit comments