Closed
Bug 856180
Opened 11 years ago
Closed 11 years ago
Bad display of certname(windowname) on certificate viewer for unicode intermediate certs
Categories
(Core :: Security: PSM, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 234856
People
(Reporter: cviecco, Unassigned)
Details
The displaymanages uses the cert.windowtitle idl, The return value of this function (getwindowtitle) is a utf8 string (at the c++ level as a char *). That is the cert nickname (ASCII), the common name (again usually ascii), and email address (ascii) or the subject name (UTF8!) however the return value for this idl is a string https://mxr.mozilla.org/mozilla-central/source/security/manager/ssl/public/nsIX509Cert.idl#131 Which according to the string guide (https://developer.mozilla.org/en-US/docs/Mozilla_internal_string_guide#IDL_String_types) does not preserve the high bits (therefore does not work well the case of utf return) To reproduce: 1. goto https://www.tp.edu.tw 2. open the certificate viewer 3. go to the tree view 4. notice the intemdiate cert with gibberish characters I think we should either update the idl to a string type or create new unicode friendly windowName attribute (in nsIX509Cert4?)
Reporter | ||
Comment 1•11 years ago
|
||
problematic call: *aWindowTitle = PL_strdup(mCert->subjectName); https://mxr.mozilla.org/mozilla-central/source/security/manager/ssl/src/nsNSSCertificate.cpp#535
Updated•11 years ago
|
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•