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
Lukas However
OpenLDAP
Commits
0eb19657
Commit
0eb19657
authored
24 years ago
by
Kurt Zeilenga
Browse files
Options
Downloads
Patches
Plain Diff
Add missing -DNO_THREADS trylock and make minor change to TLS
in attempt to get it work with GNU PTH.
parent
c6e4ad6c
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
libraries/libldap/tls.c
+3
-3
3 additions, 3 deletions
libraries/libldap/tls.c
libraries/libldap_r/thr_stub.c
+6
-0
6 additions, 0 deletions
libraries/libldap_r/thr_stub.c
with
9 additions
and
3 deletions
libraries/libldap/tls.c
+
3
−
3
View file @
0eb19657
...
...
@@ -66,9 +66,9 @@ static ldap_pvt_thread_mutex_t tls_mutexes[CRYPTO_NUM_LOCKS];
static
void
tls_locking_cb
(
int
mode
,
int
type
,
const
char
*
file
,
int
line
)
{
if
(
mode
&
CRYPTO_LOCK
)
{
ldap_pvt_thread_mutex_lock
(
tls_mutexes
+
type
);
ldap_pvt_thread_mutex_lock
(
&
tls_mutexes
[
type
]
);
}
else
{
ldap_pvt_thread_mutex_unlock
(
tls_mutexes
+
type
);
ldap_pvt_thread_mutex_unlock
(
&
tls_mutexes
[
type
]
);
}
}
...
...
@@ -83,7 +83,7 @@ static void tls_init_threads( void )
int
i
;
for
(
i
=
0
;
i
<
CRYPTO_NUM_LOCKS
;
i
++
)
{
ldap_pvt_thread_mutex_init
(
tls_mutexes
+
i
);
ldap_pvt_thread_mutex_init
(
&
tls_mutexes
[
i
]
);
}
CRYPTO_set_locking_callback
(
tls_locking_cb
);
/* FIXME: the thread id should be added somehow... */
...
...
This diff is collapsed.
Click to expand it.
libraries/libldap_r/thr_stub.c
+
6
−
0
View file @
0eb19657
...
...
@@ -126,6 +126,12 @@ ldap_int_thread_mutex_lock( ldap_int_thread_mutex_t *mutex )
return
0
;
}
int
ldap_int_thread_mutex_trylock
(
ldap_int_thread_mutex_t
*
mutex
)
{
return
0
;
}
int
ldap_int_thread_mutex_unlock
(
ldap_int_thread_mutex_t
*
mutex
)
{
...
...
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