get read until much later, too late for TLS_RANDFILE to be useful.
/* 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.
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
*/