Closed Bug 333679 Opened 18 years ago Closed 18 years ago

certutil adds 3 months to user-specified validity period

Categories

(NSS :: Tools, defect, P2)

3.11
defect

Tracking

(Not tracked)

RESOLVED FIXED
3.11.1

People

(Reporter: nelson, Assigned: nelson)

Details

Attachments

(1 file)

certutil has a -v option that specifies the validity period in months.
The usage message says that the default value is 3, but that is not 
exactly right.

The default value is zero, and certutil always adds 3 to whatever value 
is given (including the default value).

certutil should have a default that is 3 (to match the usage), but when 
the user specifies a value, that value given should be honored without addition.

patch forthcoming
Status: NEW → ASSIGNED
Priority: -- → P2
Attached patch patch v1Splinter Review
Neil, please review.
Attachment #218134 - Flags: review?
I think there was a reason for those extra 3 months, but I can't remember what it was. all.sh should definitely be tested with the patch before reviewing. I wouldn't be surprised if some tests depended on it.
Attachment #218134 - Flags: review? → review?(neil.williams)
(In reply to comment #2)
> all.sh should definitely be tested with the patch before reviewing. 
> I wouldn't be surprised if some tests depended on it.

all.sh passes with this change in place (on my windows box with OBJD build)
Comment on attachment 218134 [details] [diff] [review]
patch v1

Looks good.
Attachment #218134 - Flags: review?(neil.williams) → review+
Checked in on trunk
Checking in certutil.c; new revision: 1.100; previous revision: 1.99
Checked in on branch.
Checking in certutil.c;  new revision: 1.97.2.3; previous revision: 1.97.2.2

Thanks for the review, Neil.
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: