Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Tero Saarni
OpenLDAP
Commits
0d34830b
Commit
0d34830b
authored
Jan 02, 2019
by
Howard Chu
Committed by
Quanah Gibson-Mount
Jan 02, 2019
Browse files
ITS
#8353
CRYPTO_set_id_callback deprecated in OpenSSL 0.9.9
parent
77996215
Changes
1
Hide whitespace changes
Inline
Side-by-side
libraries/libldap/tls_o.c
View file @
0d34830b
...
...
@@ -89,6 +89,13 @@ static void tlso_locking_cb( int mode, int type, const char *file, int line )
}
}
#if OPENSSL_VERSION_NUMBER >= 0x0909000
static
void
tlso_thread_self
(
CRYPTO_THREADID
*
id
)
{
CRYPTO_THREADID_set_pointer
(
id
,
(
void
*
)
ldap_pvt_thread_self
()
);
}
#define CRYPTO_set_id_callback(foo) CRYPTO_THREADID_set_callback(foo)
#else
static
unsigned
long
tlso_thread_self
(
void
)
{
/* FIXME: CRYPTO_set_id_callback only works when ldap_pvt_thread_t
...
...
@@ -101,6 +108,7 @@ static unsigned long tlso_thread_self( void )
return
(
unsigned
long
)
ldap_pvt_thread_self
();
}
#endif
static
void
tlso_thr_init
(
void
)
{
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment