Closed Bug 289819 Opened 19 years ago Closed 19 years ago

certutil -A reports extension not found if file has extra data

Categories

(NSS :: Libraries, defect, P2)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: nelson, Assigned: nelson)

Details

Attachments

(2 files)

We've had numerous bugs against NSS since 3.0, all of which complained
that they get error SEC_ERROR_EXTENSION_NOT_FOUND in inappropriate 
circumstances.  The first such error filed (that I can find) was bug 51559.

Here's another one.  Create a file that contains a DER-encoded cert but
also has some extra cruft in the file after the cert.  bug 289817 documents
one way of creating such a file.  Then try to import this cert with 
certutil -A.  The import will fail, reporting error "extension not found",
which is wrong.  The problem is yet-another place that fails to set the
appropriate error code.  Patch forthcoming.
Attached patch patch v1Splinter Review
Attachment #180315 - Flags: review?(julien.pierre.bugs)
Status: NEW → ASSIGNED
Priority: -- → P2
Target Milestone: --- → 3.10
Attachment #180315 - Flags: review?(julien.pierre.bugs) → review+
Checking in certread.c;  new revision: 1.10; previous revision: 1.9

Thanks for the review.
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Attachment #180315 - Flags: superreview+
Comment on attachment 180385 [details] [diff] [review]
Fix a typo in the SEC_ERROR_EXTRA_INPUT error message

good catch, Wan-Teh.
Attachment #180385 - Flags: review?(nelson) → review+
Comment on attachment 180385 [details] [diff] [review]
Fix a typo in the SEC_ERROR_EXTRA_INPUT error message

Fix checked in on NSS tip for NSS 3.10.

Checking in SECerrs.h;
/cvsroot/mozilla/security/nss/cmd/lib/SECerrs.h,v  <--	SECerrs.h
new revision: 1.11; previous revision: 1.10
done

Also fixed in the SSL Reference.

Checking in sslerr.html;
/cvsroot/mozilla-org/html/projects/security/pki/nss/ref/ssl/sslerr.html,v  <--
sslerr.html
new revision: 1.12; previous revision: 1.11
done
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: