mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-04-12 15:10:31 +08:00
ITS#10209 libldap: only use OPENSSL_INIT_NO_ATEXIT if it's defined
Fake OpenSSL clones like LibreSSL don't support it. In general we will make no effort to support fake OpenSSL clones.
This commit is contained in:
parent
2814365126
commit
1d37f7b005
@ -225,7 +225,12 @@ tlso_init( void )
|
||||
SSL_library_init();
|
||||
OpenSSL_add_all_digests();
|
||||
#else
|
||||
OPENSSL_init_ssl(OPENSSL_INIT_NO_ATEXIT, NULL);
|
||||
#ifdef OPENSSL_INIT_NO_ATEXIT
|
||||
#define OPENSSL_FLAGS OPENSSL_INIT_NO_ATEXIT
|
||||
#else
|
||||
#define OPENSSL_FLAGS 0
|
||||
#endif
|
||||
OPENSSL_init_ssl(OPENSSL_FLAGS, NULL);
|
||||
#endif
|
||||
|
||||
/* FIXME: mod_ssl does this */
|
||||
|
Loading…
x
Reference in New Issue
Block a user