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)

Sun
Solaris
defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: wtc, Assigned: wtc)

Details

Attachments

(1 file)

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.
Priority: -- → P3
Target Milestone: --- → 3.2
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.
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
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 → ---
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
Patch looks good to me.
I checked in my patch (id=23423) on the tip.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago24 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.

Attachment

General

Creator:
Created:
Updated:
Size: