Bug 526121

Summary: RFE: error number to string translation
Product: [Fedora] Fedora Reporter: Miloslav Trmač <mitr>
Component: nssAssignee: Kai Engert (:kaie) (inactive account) <kengert>
Status: CLOSED UPSTREAM QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: emaldona, kdudka, kengert
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-09-30 18:37:56 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Miloslav Trmač 2009-09-28 20:56:31 UTC
Please provide a way for an application that uses NSS to easily translate an error number into a string (translated to reflect the current locale, if possible) - from a quick look it seems PR_ErrorInstallTable() would be useful, or perhaps just make SECU_Strerror() available.

AFAICS currently a program that links to NSS must maintain it's own error number to string translation tables, which is rather ridiculous.

Comment 1 Kamil Dudka 2009-09-29 11:35:58 UTC
It looks like a good idea to me. We need exactly this in (lib)curl.

Comment 2 Kai Engert (:kaie) (inactive account) 2009-09-30 18:37:43 UTC
forwarded request to upstream
https://bugzilla.mozilla.org/show_bug.cgi?id=519773