Closed
Bug 64306
Opened 24 years ago
Closed 24 years ago
Need to provide stubs for NSPR functions used by lib/freebl/loader.c in lib/fortcrypt/swft/pkcs11.
Categories
(NSS :: Libraries, defect, P3)
Tracking
(Not tracked)
RESOLVED
FIXED
3.2
People
(Reporter: wtc, Assigned: wtc)
Details
Attachments
(1 file)
646 bytes,
patch
|
Details | Diff | Splinter Review |
On 32-bit Solaris and HP-UX, libfreebl now calls PR_LoadLibraryWithFlags to load the DSO for the CPU architecture. We need to either provide stubs for these NSPR library loading functions in lib/fortcrypt/swft/pkcs11/stub.c or rewrite lib/freebl/loader.c to call dlopen or shl_load directly.
Assignee | ||
Updated•24 years ago
|
Priority: -- → P3
Target Milestone: --- → 3.2
Comment 1•24 years ago
|
||
I would strongly prefer to see a real implementation of PR_LoadLibraryWithFLags (e.g. duplicated from NSPR) in the "stubs" functions than to stop using PR_LoadLibraryWithFlags. Also, note that loader.c also uses PR_FindSymbol.
Assignee | ||
Comment 2•24 years ago
|
||
This bug is fixed as a by-product of fixing bug #66286. lib/freebl/loader.c now calls dlopen or shl_load directly.
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 3•24 years ago
|
||
Turns out this is not fixed. Although freebl/loader.c no longer uses PR_LoadLibraryWithFlags, PR_FindSymbol, and PR_UnloadLibrary, it now needs PR_SetError and PR_SetErrorText.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee | ||
Comment 4•24 years ago
|
||
Assignee | ||
Comment 5•24 years ago
|
||
Bob: could you review my patch? Now lib/freebl/loader.c calls PR_SetError and PR_SetErrorText (on 32-bit Solaris and HP-UX only), so I added stubs for these two functions to mozilla/security/nss/lib/fortcrypt/swfort/pkcs11/stub.c.
Status: REOPENED → ASSIGNED
Comment 6•24 years ago
|
||
Patch looks good to me.
Assignee | ||
Comment 7•24 years ago
|
||
I checked in my patch (id=23423) on the tip.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago → 24 years ago
Resolution: --- → FIXED
Summary: Need to provide stubs for PR_LoadLibraryWithFlags etc. in lib/fortcrypt/swft/pkcs11. → Need to provide stubs for NSPR functions used by lib/freebl/loader.c in lib/fortcrypt/swft/pkcs11.
You need to log in
before you can comment on or make changes to this bug.
Description
•