Closed Bug 478994 Opened 16 years ago Closed 16 years ago

Allow Softoken's fork check to be disabled

Categories

(NSS :: Libraries, defect, P1)

Tracking

(Not tracked)

RESOLVED FIXED
3.12.3

People

(Reporter: nelson, Assigned: nelson)

Details

(Whiteboard: FIPS SUN_MUST_HAVE)

Attachments

(1 file)

The fork checking that we introduced to Softken in NSS 3.12.3 has caused some old programs that dependend on the old behavior to stop working. The developers of those programs desire that they be able to continue to operate as they have done for years. They desire a way to disable Softoken's new fork checks. The attached patch offers one proposed method for doing this. It adds another reserved string for the environment variable NSS_STRICT_NOFORK. When C_Initialize detects that it is set to "DISABLED", C_Initialize will disable the fork checks. Before I ask for formal review of this patch, I'd like to know if it causes anyone great angst.
Priority: -- → P1
Whiteboard: FIPS SUN_MUST_HAVE
I never understood why we wanted to add the fork check to the softoken, so I have no comments for this bug.
Comment on attachment 362835 [details] [diff] [review] patch v1 - untested r+ rrelyea (once it's tested).
Attachment #362835 - Flags: review+
Christophe, Please prepare a test build with this patch and prepare to test DS5 with that version of NSS and the environment variable NSS_STRICT_NOFORK=DISABLED
Nelson, There is a typo in your patch at line 362 if ( doForkCheck && !strcmp(doForkCheck, "DISBLED") ) { \ "DISBLED" should be "DISABLED"
I fixed the spelling of DISABLED and committed the patch. Checking in pkcs11.c; new revision: 1.161; previous revision: 1.160 Checking in softoken.h; new revision: 1.23; previous revision: 1.22
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: