Skip to content

Commit

Permalink
Merge pull request cisco#2 from zmartzone/fix-check_jwe-with-older-ja…
Browse files Browse the repository at this point in the history
…nsson-versions

preserve key order in order to be able to compare serialized JWTs
  • Loading branch information
zandbelt authored Apr 5, 2022
2 parents 0244f24 + 8342012 commit e9c4a8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jwe.c
Original file line number Diff line number Diff line change
Expand Up @@ -1640,7 +1640,7 @@ char *cjose_jwe_export_json(cjose_jwe_t *jwe, cjose_err *err)
}
}

char *json_str = json_dumps(form, 0);
char *json_str = json_dumps(form, JSON_PRESERVE_ORDER);
if (NULL == json_str)
{
CJOSE_ERROR(err, CJOSE_ERR_NO_MEMORY);
Expand Down

0 comments on commit e9c4a8c

Please sign in to comment.