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
James Lowden
OpenLDAP
Commits
30a43333
Commit
30a43333
authored
14 years ago
by
Quanah Gibson-Mount
Browse files
Options
Downloads
Patches
Plain Diff
ITS#6802
parent
eedf96d8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGES
+1
-0
1 addition, 0 deletions
CHANGES
libraries/libldap/tls_m.c
+25
-0
25 additions, 0 deletions
libraries/libldap/tls_m.c
with
26 additions
and
0 deletions
CHANGES
+
1
−
0
View file @
30a43333
...
...
@@ -38,6 +38,7 @@ OpenLDAP 2.4.24 Engineering
Fixed libldap sync checking for BER errors (ITS#6738)
Fixed libldap MozNSS default cipher suites (ITS#6790)
Fixed libldap MozNSS cert usage types/values (ITS#6791)
Fixed libldap MozNSS restart module (ITS#6802)
Fixed liblutil getpass prompts (ITS#6702)
Fixed ldapsearch segfault with deref (ITS#6638)
Fixed ldapsearch multiple controls parsing (ITS#6651)
...
...
This diff is collapsed.
Click to expand it.
libraries/libldap/tls_m.c
+
25
−
0
View file @
30a43333
...
...
@@ -68,6 +68,13 @@
#define HAVE_NSS_INITCONTEXT 1
#endif
/* NSS 3.12.9 and later have SECMOD_RestartModules */
#if NSS_VMAJOR <= 3 && NSS_VMINOR <= 12 && NSS_VPATCH < 9
/* do nothing */
#else
#define HAVE_SECMOD_RESTARTMODULES 1
#endif
/* InitContext does not currently work in server mode */
/* #define INITCONTEXT_HACK 1 */
...
...
@@ -1482,6 +1489,24 @@ tlsm_deferred_init( void *arg )
SECStatus
rc
;
int
done
=
0
;
#ifdef HAVE_SECMOD_RESTARTMODULES
/* NSS enforces the pkcs11 requirement that modules should be unloaded after
a fork() - since there is no portable way to determine if NSS has been
already initialized in a parent process, we just call SECMOD_RestartModules
with force == FALSE - if the module has been unloaded due to a fork, it will
be reloaded, otherwise, it is a no-op */
if
(
SECFailure
==
(
rc
=
SECMOD_RestartModules
(
PR_FALSE
/* do not force */
)
)
)
{
errcode
=
PORT_GetError
();
if
(
errcode
!=
SEC_ERROR_NOT_INITIALIZED
)
{
Debug
(
LDAP_DEBUG_TRACE
,
"TLS: could not restart the security modules: %d:%s
\n
"
,
errcode
,
PR_ErrorToString
(
errcode
,
PR_LANGUAGE_I_DEFAULT
),
0
);
}
else
{
errcode
=
1
;
}
}
#endif
#ifdef HAVE_NSS_INITCONTEXT
memset
(
&
initParams
,
0
,
sizeof
(
initParams
)
);
initParams
.
length
=
sizeof
(
initParams
);
...
...
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