Closed
Bug 757857
Opened 14 years ago
Closed 13 years ago
certutil: create name constraints
Categories
(NSS :: Tools, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
3.15
People
(Reporter: KaiE, Assigned: KaiE)
References
(Blocks 1 open bug)
Details
Attachments
(1 file, 1 obsolete file)
|
14.00 KB,
patch
|
rrelyea
:
review+
|
Details | Diff | Splinter Review |
The NSS certutil tool should be able to create name constraint extensions.
| Assignee | ||
Comment 1•13 years ago
|
||
| Assignee | ||
Comment 2•13 years ago
|
||
Assignee: nobody → kaie
Attachment #649289 -
Attachment is obsolete: true
| Assignee | ||
Comment 3•13 years ago
|
||
Comment on attachment 731194 [details] [diff] [review]
Patch v2
-GetGeneralName (PRArenaPool *arena)
+GetGeneralName(PRArenaPool *arena, CERTGeneralName *useExistingName, PRBool onlyOne)
The function GetGeneralName is able to store multiple names in one GetGeneralName. However, when trying to use a GeneralName with more than one entry, the code to encode name constraints will use only the first one.
Therefore I changed this utility function to optionally prompt the user only once.
Also, the name constraints code already allocates a GeneralName as part of another structure, therefore I changed this utility function to optionally use an existing one (instead of always allocation one).
Furthermore, the patch contains code to create a linked list, and setup pointers between list elements.
Note that I didn't write that code. I copied it unchanged from similar code in the certcgi.c file, so IMHO you don't need to review it.
Function CERT_EncodeNameConstraintsExtension already exists, this patch simply exports it.
At runtime, when using the --extNC option, the user will be prompted multiple times, and for each named entered, the user can decide if it's a permitted or an excluded name.
Attachment #731194 -
Flags: review?(rrelyea)
Comment 4•13 years ago
|
||
Comment on attachment 731194 [details] [diff] [review]
Patch v2
r+ rrelyea
Attachment #731194 -
Flags: review?(rrelyea) → review+
| Assignee | ||
Comment 5•13 years ago
|
||
Checked in as
https://hg.mozilla.org/projects/nss/rev/d721bbf83740
Then I noticed that we already have a version 3.15 section in nss.dev, I cleaned it up with a follow up:
https://hg.mozilla.org/projects/nss/rev/f4f42609fa28
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → 3.15
You need to log in
before you can comment on or make changes to this bug.
Description
•