|
|
Chromium Code Reviews
DescriptionMisc changes to cert_verify_tool for errors
* Correct a bug that prevented the display of per-path errors.
* Add some additional help text for CLI, and reformat it.
BUG=634443
Committed: https://crrev.com/554ace1bfac664fbf6603c938aeef98914d5d4b4
Cr-Commit-Position: refs/heads/master@{#416780}
Patch Set 1 #
Total comments: 12
Patch Set 2 : Address Matt's feedback #Patch Set 3 : empty change #Patch Set 4 : fix a typo #Patch Set 5 : move code up for better diff #
Total comments: 2
Patch Set 6 : reparent to origin/master #Patch Set 7 : fix #Patch Set 8 : rebase #
Total comments: 2
Patch Set 9 : correct comment #
Messages
Total messages: 37 (26 generated)
eroman@chromium.org changed reviewers: + mattm@chromium.org
https://codereview.chromium.org/2305083002/diff/1/net/tools/cert_verify_tool/... File net/tools/cert_verify_tool/cert_verify_tool.cc (left): https://codereview.chromium.org/2305083002/diff/1/net/tools/cert_verify_tool/... net/tools/cert_verify_tool/cert_verify_tool.cc:66: std::cerr << "ERROR: --hostname is required\n"; Mostly just a convenience, since I find myself mostly running the CertPathBuilder flavor. https://codereview.chromium.org/2305083002/diff/1/net/tools/cert_verify_tool/... File net/tools/cert_verify_tool/cert_verify_tool.cc (right): https://codereview.chromium.org/2305083002/diff/1/net/tools/cert_verify_tool/... net/tools/cert_verify_tool/cert_verify_tool.cc:19: " [flags] <target/intermediates>\n" If you don't like these changes I can revert them. But I think it is fairly readable in terminal output. https://codereview.chromium.org/2305083002/diff/1/net/tools/cert_verify_tool/... File net/tools/cert_verify_tool/cert_verify_tool_util.cc (right): https://codereview.chromium.org/2305083002/diff/1/net/tools/cert_verify_tool/... net/tools/cert_verify_tool/cert_verify_tool_util.cc:71: return true; Considering this case success since the caller tests for |target| being empty. https://codereview.chromium.org/2305083002/diff/1/net/tools/cert_verify_tool/... File net/tools/cert_verify_tool/verify_using_path_builder.cc (right): https://codereview.chromium.org/2305083002/diff/1/net/tools/cert_verify_tool/... net/tools/cert_verify_tool/verify_using_path_builder.cc:152: if (!result_path->errors.errors().empty()) { Oops! Clearly I didn't even test this when I wrote it earlier :(
https://codereview.chromium.org/2305083002/diff/1/net/tools/cert_verify_tool/... File net/tools/cert_verify_tool/cert_verify_tool.cc (right): https://codereview.chromium.org/2305083002/diff/1/net/tools/cert_verify_tool/... net/tools/cert_verify_tool/cert_verify_tool.cc:19: " [flags] <target/intermediates>\n" "target/intermediates" seems a little misleading to me, since the "target" part is required. It doesn't match the "target+chain" in the description below either. https://codereview.chromium.org/2305083002/diff/1/net/tools/cert_verify_tool/... net/tools/cert_verify_tool/cert_verify_tool.cc:119: std::cerr << "ERROR: Couldn't read certifcate chain\n"; certifcate https://codereview.chromium.org/2305083002/diff/1/net/tools/cert_verify_tool/... net/tools/cert_verify_tool/cert_verify_tool.cc:143: if (hostname.empty()) { should be !empty ? https://codereview.chromium.org/2305083002/diff/1/net/tools/cert_verify_tool/... net/tools/cert_verify_tool/cert_verify_tool.cc:154: } I think it's better to leave the trust store warnings inside VerifyUsingPathBuilder. Especially since it gets more complicated with the NSS trust store CL.
Thanks for the feedback! https://codereview.chromium.org/2305083002/diff/1/net/tools/cert_verify_tool/... File net/tools/cert_verify_tool/cert_verify_tool.cc (right): https://codereview.chromium.org/2305083002/diff/1/net/tools/cert_verify_tool/... net/tools/cert_verify_tool/cert_verify_tool.cc:19: " [flags] <target/intermediates>\n" On 2016/09/02 22:39:21, mattm wrote: > "target/intermediates" seems a little misleading to me, since the "target" part > is required. It doesn't match the "target+chain" in the description below > either. Did some rewording, what do you think now? https://codereview.chromium.org/2305083002/diff/1/net/tools/cert_verify_tool/... net/tools/cert_verify_tool/cert_verify_tool.cc:119: std::cerr << "ERROR: Couldn't read certifcate chain\n"; On 2016/09/02 22:39:21, mattm wrote: > certifcate Done. https://codereview.chromium.org/2305083002/diff/1/net/tools/cert_verify_tool/... net/tools/cert_verify_tool/cert_verify_tool.cc:143: if (hostname.empty()) { On 2016/09/02 22:39:21, mattm wrote: > should be !empty ? Done. https://codereview.chromium.org/2305083002/diff/1/net/tools/cert_verify_tool/... net/tools/cert_verify_tool/cert_verify_tool.cc:154: } On 2016/09/02 22:39:21, mattm wrote: > I think it's better to leave the trust store warnings inside > VerifyUsingPathBuilder. Especially since it gets more complicated with the NSS > trust store CL. Done.
The CQ bit was checked by eroman@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was checked by eroman@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was checked by eroman@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was checked by eroman@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
(there will be a merge conflict once https://codereview.chromium.org/2272493002/ lands, too.) https://codereview.chromium.org/2305083002/diff/80001/net/tools/cert_verify_t... File net/tools/cert_verify_tool/cert_verify_tool.cc (right): https://codereview.chromium.org/2305083002/diff/80001/net/tools/cert_verify_t... net/tools/cert_verify_tool/cert_verify_tool.cc:133: } else if (!hostname.empty()) { this one shouldn't be !-ed though
> (there will be a merge conflict once https://codereview.chromium.org/2272493002/ lands, too.) Acknowledged. I will update once that lands. https://codereview.chromium.org/2305083002/diff/80001/net/tools/cert_verify_t... File net/tools/cert_verify_tool/cert_verify_tool.cc (right): https://codereview.chromium.org/2305083002/diff/80001/net/tools/cert_verify_t... net/tools/cert_verify_tool/cert_verify_tool.cc:133: } else if (!hostname.empty()) { On 2016/09/03 00:11:21, mattm wrote: > this one shouldn't be !-ed though oops i updated in a hurry, sorry about that.
The CQ bit was checked by eroman@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
Rebased
The CQ bit was checked by eroman@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
lgtm https://codereview.chromium.org/2305083002/diff/140001/net/tools/cert_verify_... File net/tools/cert_verify_tool/cert_verify_tool_util.h (right): https://codereview.chromium.org/2305083002/diff/140001/net/tools/cert_verify_... net/tools/cert_verify_tool/cert_verify_tool_util.h:37: // nothing is written to |target| or |intermediates. missing |
The CQ bit was checked by eroman@chromium.org to run a CQ dry run
https://codereview.chromium.org/2305083002/diff/140001/net/tools/cert_verify_... File net/tools/cert_verify_tool/cert_verify_tool_util.h (right): https://codereview.chromium.org/2305083002/diff/140001/net/tools/cert_verify_... net/tools/cert_verify_tool/cert_verify_tool_util.h:37: // nothing is written to |target| or |intermediates. On 2016/09/06 22:10:50, mattm wrote: > missing | Done.
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
The CQ bit was checked by eroman@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from mattm@chromium.org Link to the patchset: https://codereview.chromium.org/2305083002/#ps160001 (title: "correct comment")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Message was sent while issue was closed.
Committed patchset #9 (id:160001)
Message was sent while issue was closed.
Description was changed from ========== Misc changes to cert_verify_tool for errors * Correct a bug that prevented the display of per-path errors. * Add some additional help text for CLI, and reformat it. BUG=634443 ========== to ========== Misc changes to cert_verify_tool for errors * Correct a bug that prevented the display of per-path errors. * Add some additional help text for CLI, and reformat it. BUG=634443 Committed: https://crrev.com/554ace1bfac664fbf6603c938aeef98914d5d4b4 Cr-Commit-Position: refs/heads/master@{#416780} ==========
Message was sent while issue was closed.
Patchset 9 (id:??) landed as https://crrev.com/554ace1bfac664fbf6603c938aeef98914d5d4b4 Cr-Commit-Position: refs/heads/master@{#416780} |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
