Closed
Bug 130968
Opened 22 years ago
Closed 21 years ago
SEC_TraversePermCerts is referenced but not defined
Categories
(NSS :: Libraries, defect, P3)
Tracking
(Not tracked)
RESOLVED
FIXED
3.8
People
(Reporter: wtc, Assigned: rrelyea)
Details
Attachments
(2 files, 1 obsolete file)
1.30 KB,
patch
|
wtc
:
review+
|
Details | Diff | Splinter Review |
396 bytes,
patch
|
wtc
:
review+
|
Details | Diff | Splinter Review |
The function SEC_TraversePermCerts is referenced by two files (lib/jar/jarjart.c and cmd/lib/seccnames.c) but not defined. I don't know why we are not getting unresolved symbol linker errors. I found out about this problem because the compiler warns about implicit declaration of function SEC_TraversePermCerts (it's not declared in any header file). Is this a serious problem?
Assignee | ||
Comment 1•22 years ago
|
||
No, I suspect we aren't getting an error because the code that references SEC_TraversePermCerts is dead code. No external apps include libjar anymore (only a couple of our internal ones). bob
Reporter | ||
Comment 2•22 years ago
|
||
Changed the QA contact to Bishakha.
QA Contact: sonja.mirtitsch → bishakhabanerjee
Assignee | ||
Comment 3•22 years ago
|
||
Setting target to 3.5 may be pushed off since it's not critical
Target Milestone: --- → 3.5
Reporter | ||
Comment 4•22 years ago
|
||
Moved to NSS 3.6, priority P3, severity trivial. Bob, I guess the fix is not to implement SEC_TraversePermCerts but rather to remove the references to this symbol, right?
Severity: normal → trivial
Priority: -- → P3
Target Milestone: 3.5 → 3.6
Assignee | ||
Comment 5•22 years ago
|
||
yes, the fix would be to replace SEC_TraversePermCerts with PK11_ListCerts.
Assignee | ||
Updated•22 years ago
|
Target Milestone: 3.6 → 3.7
Reporter | ||
Comment 6•22 years ago
|
||
Moved to target milestone 3.8 because the original NSS 3.7 release has been renamed 3.8.
Target Milestone: 3.7 → 3.8
Assignee | ||
Comment 7•21 years ago
|
||
Assignee | ||
Updated•21 years ago
|
Attachment #115951 -
Flags: superreview?(jpierre)
Attachment #115951 -
Flags: review?(wtc)
Reporter | ||
Comment 8•21 years ago
|
||
Comment on attachment 115951 [details] [diff] [review] Remove Traverse call from libjar. In jarjart.c, >+ certs = PK11_ListCerts(PK11CertListUnique, NULL/* pwarg*/); >+ if (certs) >+ { >+ for (node = CERT_LIST_HEAD(certs); !CERT_LIST_END(node,certs); >+ node = CERT_LIST_NEXT(node)) >+ { >+ jar_list_cert_callback(node->cert, NULL, (void *)&ugly_list); >+ } >+ CERT_DestroyCertList(certs); >+ } >+ else >+ { >+ status = SECFailure; >+ } The new code will never set 'status' to SECSuccess. It is also ignoring the return value of jar_list_cert_callback. If 'certs' is not NULL, I think 'status' should either be set to SECSuccess or based on the return value of jar_list_cert_callback.
Attachment #115951 -
Flags: review?(wtc) → review-
Assignee | ||
Comment 9•21 years ago
|
||
It should return SECSuccess if it finds some certs. Ignoring the return code from the callback function emulates the same behavior as the original Traverse function.
Assignee | ||
Comment 10•21 years ago
|
||
Attachment #115951 -
Attachment is obsolete: true
Reporter | ||
Comment 11•21 years ago
|
||
Comment on attachment 116243 [details] [diff] [review] Incorporate wtc's comments... r=wtc. cmd/lib/seccnames.c also needs to be fixed.
Attachment #116243 -
Flags: review+
Assignee | ||
Comment 12•21 years ago
|
||
Reporter | ||
Comment 13•21 years ago
|
||
Comment on attachment 116323 [details] [diff] [review] Remove depricated '.c' file r=wtc.
Attachment #116323 -
Flags: review+
Assignee | ||
Comment 14•21 years ago
|
||
These patches are all checked in.
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Updated•21 years ago
|
Attachment #115951 -
Flags: superreview?(jpierre)
You need to log in
before you can comment on or make changes to this bug.
Description
•