Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
OpenLDAP
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
David Barchiesi
OpenLDAP
Commits
bbecfa74
Commit
bbecfa74
authored
14 years ago
by
Howard Chu
Browse files
Options
Downloads
Patches
Plain Diff
ITS#6811, more for #6802 PKCS11 fork() handling from Rich Megginson @ Red Hat
parent
36d0a161
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libraries/libldap/tls_m.c
+17
-0
17 additions, 0 deletions
libraries/libldap/tls_m.c
with
17 additions
and
0 deletions
libraries/libldap/tls_m.c
+
17
−
0
View file @
bbecfa74
...
...
@@ -2872,10 +2872,27 @@ static const PRIOMethods tlsm_PR_methods = {
static
int
tlsm_init
(
void
)
{
char
*
nofork
=
PR_GetEnv
(
"NSS_STRICT_NOFORK"
);
PR_Init
(
0
,
0
,
0
);
tlsm_layer_id
=
PR_GetUniqueIdentity
(
"OpenLDAP"
);
/*
* There are some applications that acquire a crypto context in the parent process
* and expect that crypto context to work after a fork(). This does not work
* with NSS using strict PKCS11 compliance mode. We set this environment
* variable here to tell the software encryption module/token to allow crypto
* contexts to persist across a fork(). However, if you are using some other
* module or encryption device that supports and expects full PKCS11 semantics,
* the only recourse is to rewrite the application with atfork() handlers to save
* the crypto context in the parent and restore (and SECMOD_RestartModules) the
* context in the child.
*/
if
(
!
nofork
)
{
PR_SetEnv
(
"NSS_STRICT_NOFORK=DISABLED"
);
}
return
0
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment