mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-18 11:05:48 +08:00
ITS#1613, call ldap_pvt_tls_init after config file is read. ldap.conf doesn't
get read until much later, too late for TLS_RANDFILE to be useful.
This commit is contained in:
parent
1649a3f832
commit
14026284d0
@ -48,13 +48,6 @@ main(
|
||||
/* initialize thread package */
|
||||
ldap_pvt_thread_initialize();
|
||||
|
||||
#ifdef HAVE_TLS
|
||||
if( ldap_pvt_tls_init() || ldap_pvt_tls_init_def_ctx() ) {
|
||||
fprintf( stderr, "TLS Initialization failed.\n" );
|
||||
exit( EXIT_FAILURE);
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Create and initialize globals. init_globals() also initializes
|
||||
* the main replication queue.
|
||||
@ -81,6 +74,13 @@ main(
|
||||
exit( EXIT_FAILURE );
|
||||
}
|
||||
|
||||
#ifdef HAVE_TLS
|
||||
if( ldap_pvt_tls_init() || ldap_pvt_tls_init_def_ctx() ) {
|
||||
fprintf( stderr, "TLS Initialization failed.\n" );
|
||||
exit( EXIT_FAILURE);
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Make sure our directory exists
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user