)]}'
{
  "commit": "15e5c97e607eaaedaab4ff30fdb1df7248164814",
  "tree": "f55a1bdab8c1553bb32990c0ab2ba7b5272eb63b",
  "parents": [
    "e4df48a301ed36acf108af2a4d05ee4992fccb22"
  ],
  "author": {
    "name": "Ben Collins",
    "email": "bcollins@libjwt.io",
    "time": "Tue Nov 17 21:29:49 2026 -0500"
  },
  "committer": {
    "name": "Ben Collins",
    "email": "bcollins@libjwt.io",
    "time": "Fri Nov 20 09:49:03 2026 -0500"
  },
  "message": "jwt: surface the specific reason on JWS JSON/keyring verify failure\n\nA JWS JSON Serialization or keyring verify failure reported only the\ngeneric \"Signature policy not met (N of M verified)\", dropping the\nper-signature cause the single-key Compact path already gives (a bad\nsignature, a key whose type or \"alg\" cannot carry the token\u0027s, a\n\"typ\"/algorithm policy rejection, a rejecting callback). #353 made the\nverdicts agree; this makes the message agree too.\n\nRecord why each signature did not verify in struct jwt_signature:\n\n- try_candidate() keeps a failed candidate\u0027s error instead of clearing\n  it, and distinguishes a key-type from a key-\"alg\" mismatch;\n- verify_entry() records the \"typ\"/algorithm policy rejection, a\n  rejecting callback, a pinned-alg mismatch, a \"kid\" that names no usable\n  ring key, a scan with no compatible key (\"No keyring key can verify\n  \\\"RS256\\\"\"), and a scan where several candidates were tried.\n\njwt_verify_json() then reports, for a one-signature token (Compact or\nFlattened), that signature\u0027s own reason -- so a Compact token gives the\nsame specific reason whether checked with jwt_checker_setkey() or against\na keyring -- and for several signatures keeps the policy summary and\nappends the first unverified signature\u0027s index and reason, clipped to the\nerror buffer.\n\nThe message text changes: tests/jws_json.c and the keyring-failure\nassertions in jwt_key_error.c / jwt_x509.c / jwt_xbackend.c are updated, a\nnew test_msg_unify and a bats case assert the unified reason under both\nJSON backends, and no exported symbol changes (struct jwt_signature is\nprivate, reached only through the opaque jwt_signature_t).\n\nCo-Authored-By: Claude Opus 5.5 \u003cnoreply@anthropic.com\u003e\nSigned-off-by: Ben Collins \u003cbcollins@libjwt.io\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "b443d154b7ee35970aa18adf34d1ba6d9b791a87",
      "old_mode": 33188,
      "old_path": "libjwt/jwt-private.h",
      "new_id": "0ee0015b3c3f5fbb3ee4762585ee1e3050c19c85",
      "new_mode": 33188,
      "new_path": "libjwt/jwt-private.h"
    },
    {
      "type": "modify",
      "old_id": "931f3ffd7eb62e5b47b2243182ee92695230b17e",
      "old_mode": 33188,
      "old_path": "libjwt/jwt-verify.c",
      "new_id": "4d7584f4619770c12005c0e0653e2b3f0c10f217",
      "new_mode": 33188,
      "new_path": "libjwt/jwt-verify.c"
    },
    {
      "type": "modify",
      "old_id": "5061e079889ba545b33ead1b350d0719d3db8db5",
      "old_mode": 33188,
      "old_path": "tests/jws_json.c",
      "new_id": "e44ba6e3fb94ff25520f6e50283c3d3ea02fde01",
      "new_mode": 33188,
      "new_path": "tests/jws_json.c"
    },
    {
      "type": "modify",
      "old_id": "65307788611a9da10e63fc46b0d4953d6b8a7a50",
      "old_mode": 33261,
      "old_path": "tests/jwt-cli.bats",
      "new_id": "bc7aee0ff9dcc274e9c5314e76f679f114356804",
      "new_mode": 33261,
      "new_path": "tests/jwt-cli.bats"
    },
    {
      "type": "modify",
      "old_id": "c2e99e64ccd00a5b751b9a59475a8b844f0c91d3",
      "old_mode": 33188,
      "old_path": "tests/jwt_key_error.c",
      "new_id": "b9b9058a71883f8c76961d6159f89c1f15ea4a36",
      "new_mode": 33188,
      "new_path": "tests/jwt_key_error.c"
    },
    {
      "type": "modify",
      "old_id": "3a922c7b7ea62526bc8f692bf4cb6877f2c595b9",
      "old_mode": 33188,
      "old_path": "tests/jwt_x509.c",
      "new_id": "37f5f0c807efefd582aa9dcbb320d813fdbecf8a",
      "new_mode": 33188,
      "new_path": "tests/jwt_x509.c"
    },
    {
      "type": "modify",
      "old_id": "a88ac5d9fce20d03e6f677e65e18b38f7d49baba",
      "old_mode": 33188,
      "old_path": "tests/jwt_xbackend.c",
      "new_id": "e177ec76f6ba73673ffeb35cb720a30546cf3d42",
      "new_mode": 33188,
      "new_path": "tests/jwt_xbackend.c"
    }
  ]
}
