Skip to content

Commit

Permalink
Merge pull request #165 from reynir/format-typo
Browse files Browse the repository at this point in the history
Fix mixup of subject and hash in error message
  • Loading branch information
hannesm committed Feb 23, 2024
2 parents b00656d + acf40ff commit f3cdac6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/validation.ml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ let pp_signature_error ppf = function
Distinguished_name.pp subj err Cstruct.hexdump_pp sig_
| `Hash_not_allowed (subj, hash) ->
Fmt.pf ppf "hash algorithm %a is not allowed, but %a is signed using it"
Distinguished_name.pp subj Certificate.pp_hash hash
Certificate.pp_hash hash Distinguished_name.pp subj
| `Unsupported_keytype (subj, pk) ->
Fmt.pf ppf "unsupported key used to sign %a: %a" Distinguished_name.pp subj
Public_key.pp pk
Expand Down

0 comments on commit f3cdac6

Please sign in to comment.