Closed
Bug 1040446
Opened 11 years ago
Closed 11 years ago
Improve error code names/descriptions for invalid basic constraints
Categories
(Core :: Security: PSM, defect)
Core
Security: PSM
Tracking
()
RESOLVED
FIXED
mozilla34
People
(Reporter: briansmith, Assigned: keeler, Mentored)
References
Details
Attachments
(2 files)
|
7.35 KB,
patch
|
briansmith
:
review+
|
Details | Diff | Splinter Review |
|
7.28 KB,
patch
|
keeler
:
review+
lmandel
:
approval-mozilla-beta+
|
Details | Diff | Splinter Review |
Now that we have an easy-to-customize error reporting mechanism in pkix/Result.h and pkix/pkixnss.h, we should improve the error codes returned for the case of invalid basic constraints. The badness is described by this comment in the source code:
// We use Result::ERROR_CA_CERT_INVALID here so we can distinguish
// this error from other errors, given that NSS does not have a "CA cert
// used as end-entity" error code since it doesn't have such a
// prohibition. We should add such an error code and stop abusing
// Result::ERROR_CA_CERT_INVALID this way.
| Assignee | ||
Comment 1•11 years ago
|
||
Brian, let me know if you have time to review patches like this. If not, I can find another reviewer.
| Assignee | ||
Updated•11 years ago
|
Whiteboard: [good next bug]
| Reporter | ||
Comment 2•11 years ago
|
||
Comment on attachment 8471025 [details] [diff] [review]
patch
Review of attachment 8471025 [details] [diff] [review]:
-----------------------------------------------------------------
I don't have an opinion on the wording of the error message text, other than it seems better than the error message text that is currently being presented for this problem.
Attachment #8471025 -
Flags: review?(brian) → review+
| Assignee | ||
Comment 3•11 years ago
|
||
Comment 4•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla34
Updated•11 years ago
|
Flags: qe-verify-
| Assignee | ||
Comment 5•11 years ago
|
||
Approval Request Comment
[Feature/regressing bug #]: mozilla::pkix (this is needed for bug 1034124, which fixes a significant compatibility issue)
[User impact if declined]: see bug 1034124
[Describe test coverage new/current, TBPL]: there is adequate test coverage
[Risks and why]: low
[String/UUID change made/needed]: none (the lack of localizable strings is handled in bug 1052529)
Attachment #8486075 -
Flags: review+
Attachment #8486075 -
Flags: approval-mozilla-beta?
Updated•11 years ago
|
Comment 7•11 years ago
|
||
Comment on attachment 8486075 [details] [diff] [review]
patch for beta
Approving this prereq for bug 1034124 and bug 1039064 for beta.
Attachment #8486075 -
Flags: approval-mozilla-beta? → approval-mozilla-beta+
Comment 8•11 years ago
|
||
Comment on attachment 8486075 [details] [diff] [review]
patch for beta
This doesn't apply to beta at all.
Attachment #8486075 -
Attachment is obsolete: true
Flags: needinfo?(dkeeler)
Comment 9•11 years ago
|
||
Comment on attachment 8486075 [details] [diff] [review]
patch for beta
Ah, this applies on top of bug 1039064. Still holding off on pushing this until bug 1034124 comment 25 is sorted out, though.
Attachment #8486075 -
Attachment is obsolete: false
| Assignee | ||
Comment 10•11 years ago
|
||
Yes, sorry - looks like you've got it figured out, but in any case the order should be bug 1039064, then this bug, then bug 1034124.
Flags: needinfo?(dkeeler)
| Assignee | ||
Comment 11•11 years ago
|
||
Comment 12•11 years ago
|
||
Backed out from beta per bug 1039064 comment 43.
Comment 13•11 years ago
|
||
You need to log in
before you can comment on or make changes to this bug.
Description
•