Closed Bug 231566 Opened 21 years ago Closed 21 years ago

pk12util erroneously reports error -8173, no memory

Categories

(NSS :: Tools, defect, P2)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: nelson, Assigned: nelson)

Details

Attachments

(1 file)

Emil Assarsson had some trouble with pk12util.  He did some debugging, and 
wrote:

> I have a problem with some allocation errors in SEC_PKCS12AddCertAndKey(). 
> I have the same error if I use SEC_PKCS12CreatePasswordPrivSafe().
>
> I get a return value != SECSuccess and the PR_GetError() is returning a 
> -8173 (SEC_ERROR_NO_MEMORY). 
> Is this related to the arena from the ExportContext? 
> And what can I do about it? 

I looked into it, and found several bugs in pk12util that cause wrong error
messages to be shown.  I also found several misnamed functions, and found
that the Usage message was not being displayed when it should be.  

Patch forthcoming.
Attached patch patch v1Splinter Review
Fixes problems reported above.
Comment on attachment 139488 [details] [diff] [review]
patch v1

Bob, please review
Attachment #139488 - Flags: review?(rrelyea0264)
Target NSS 3.9.1
Priority: -- → P2
Target Milestone: --- → 3.9.1
Attachment #139488 - Flags: review?(rrelyea0264) → review+
/cvsroot/mozilla/security/nss/cmd/pk12util/pk12util.c,v  <--  pk12util.c
new revision: 1.28; previous revision: 1.27
Status: NEW → RESOLVED
Closed: 21 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: