Bug 782142 - [RFE] keyutil should use nss error reporting facilities instead of it own code
Summary: [RFE] keyutil should use nss error reporting facilities instead of it own code
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: crypto-utils
Version: 16
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
Assignee: Elio Maldonado Batiz
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-01-16 16:11 UTC by Elio Maldonado Batiz
Modified: 2014-09-15 11:43 UTC (History)
3 users (show)

Fixed In Version: crypto-utils-2.4.1-34.fc16
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-04-18 19:35:17 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Elio Maldonado Batiz 2012-01-16 16:11:12 UTC
Created attachment 555546 [details]
Use nss's own error mapping facilities and fix usage string

Description of problem: keyutil has error reporting code which is no longer needed. Since the 3.13 release nss has support for localizable error strings via the PORT_ErrorToString and PORT_ErrorToName macros. keyutil should use those instead of rolling its own error code to string conversion routines. 
Relying on nss for the mapping will keep up with changes in nss automatically.
This will also result some welcome code size reduction which is always welcome.

While at it, please fix the hard to read usssage message. When one types keyutil --help the usage display is unreadable. It just needs line breaks


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Elio Maldonado Batiz 2012-01-20 20:50:28 UTC
Comment on attachment 555546 [details]
Use nss's own error mapping facilities and fix usage string

Bob, since you reviewed the upstream patch that makes this enhancement  possible, could you review this one also? Thanks.

Comment 2 Bob Relyea 2012-01-20 22:50:28 UTC
Comment on attachment 555546 [details]
Use nss's own error mapping facilities and fix usage string

The only question is will the build requires for NSS need to be updated (the Requires should be updated because the new symbol in NSS util should be picked up at link time and will insert a new version number dependency in the rpm.

bob

Comment 3 Elio Maldonado Batiz 2012-01-20 23:49:20 UTC
(In reply to comment #2)
Even though Rawhide/F-16/F-15 are at 3.13.1 and my scratch build succeded I should update the spec file with the minimum nss (nss-util) version required. Good catch, thank you.

Comment 4 Fedora Update System 2012-04-07 00:26:18 UTC
crypto-utils-2.4.1-34.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/crypto-utils-2.4.1-34.fc16

Comment 5 Fedora Update System 2012-04-07 09:24:01 UTC
Package crypto-utils-2.4.1-34.fc16:
* should fix your issue,
* was pushed to the Fedora 16 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing crypto-utils-2.4.1-34.fc16'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-5500/crypto-utils-2.4.1-34.fc16
then log in and leave karma (feedback).

Comment 6 Fedora Update System 2012-04-18 19:35:17 UTC
crypto-utils-2.4.1-34.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.