Skip to content

Commit

Permalink
jwk_item_t: Make this opaque and add accessor functions
Browse files Browse the repository at this point in the history
This needs protecting for no other reason than security. We need to
avoid users being able to manipulate things.

Signed-off-by: Ben Collins <[email protected]>
benmcollins committed Jan 7, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 43dc68f commit ee4aa3d
Showing 11 changed files with 371 additions and 239 deletions.
2 changes: 1 addition & 1 deletion examples/main-auth.c
Original file line number Diff line number Diff line change
@@ -106,7 +106,7 @@ int main(int argc, char *argv[])
key_data[key_len] = '\0';

/* Setup JWK Set */
jwk_set = jwks_create(key_data);
jwk_set = jwks_create(NULL, key_data);
if (jwk_set == NULL || jwks_error(jwk_set)) {
fprintf(stderr, "ERR: Could not read JWK: %s\n",
jwks_error_msg(jwk_set));
2 changes: 1 addition & 1 deletion examples/main-gen.c
Original file line number Diff line number Diff line change
@@ -115,7 +115,7 @@ int main(int argc, char *argv[])
fprintf(stderr, "priv key loaded %s (%zu)!\n", opt_key_name, key_len);

/* Setup JWK Set */
jwk_set = jwks_create(key);
jwk_set = jwks_create(NULL, key);
if (jwk_set == NULL || jwks_error(jwk_set)) {
fprintf(stderr, "ERR: Could not read JWK: %s\n",
jwks_error_msg(jwk_set));
Loading

0 comments on commit ee4aa3d

Please sign in to comment.