Closed Bug 757857 Opened 14 years ago Closed 13 years ago

certutil: create name constraints

Categories

(NSS :: Tools, defect)

3.13.4
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: KaiE, Assigned: KaiE)

References

(Blocks 1 open bug)

Details

Attachments

(1 file, 1 obsolete file)

The NSS certutil tool should be able to create name constraint extensions.
Blocks: 757854
Attached patch some initial code (obsolete) — Splinter Review
Attached patch Patch v2Splinter Review
Assignee: nobody → kaie
Attachment #649289 - Attachment is obsolete: true
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 on attachment 731194 [details] [diff] [review] Patch v2 r+ rrelyea
Attachment #731194 - Flags: review?(rrelyea) → review+
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
Blocks: 1352064
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: