Closed
Bug 1350332
Opened 9 years ago
Closed 9 years ago
pk12util mishandles invalid cipher names
Categories
(NSS :: Tools, enhancement)
NSS
Tools
Tracking
(Not tracked)
RESOLVED
FIXED
3.31
People
(Reporter: ueno, Unassigned)
Details
Attachments
(1 file)
|
5.36 KB,
patch
|
KaiE
:
review+
|
Details | Diff | Splinter Review |
When an invalid cipher name is used with -C, pk12util silently produces output without encryption. According to the code, it is supposed to abort on that case:
https://dxr.mozilla.org/mozilla-central/source/security/nss/cmd/pk12util/pk12util.c#1061
but the check below is irrelevant: it should check the just obtained certCipher instead of cipher.
Also, the tools.sh test uses "null", meaning no encryption, while pk12util expects "none".
I am attaching a patch to fix those.
| Reporter | ||
Updated•9 years ago
|
Attachment #8850944 -
Flags: review?(kaie)
Comment 1•9 years ago
|
||
Comment on attachment 8850944 [details] [diff] [review]
nss-pk12util-invalid.patch
r=kaie
Attachment #8850944 -
Flags: review?(kaie) → review+
Comment 2•9 years ago
|
||
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → 3.31
You need to log in
before you can comment on or make changes to this bug.
Description
•