On Tue, Oct 25, 2005 at 07:46:19PM +0200, Kurt Roeckx wrote: > > It seems that stunnel4 calls SSLeay_add_ssl_algorithms() instead > of SSL_library_init(), which is a define for the later anyway, > and postfix calls OpenSSL_add_ssl_algorithms(), which is also a > define for the later. So it seems that this isn't going to be > the problem and I'll need to take a deeper look.
Taking a look at stunnel4 again, it seems that ssl_init() is called to late. I've tried with the attached patch, and now it works. Kurt
--- src/stunnel.c.old 2005-10-25 17:57:09.676529824 +0000 +++ src/stunnel.c 2005-10-25 17:57:48.746590272 +0000 @@ -81,6 +81,8 @@ void main_initialize(char *arg1, char *arg2) { struct stat st; /* buffer for stat */ + ssl_init(); /* initialize SSL library */ + context_init(); /* initialize global SSL context */ sthreads_init(); /* initialize critical sections & SSL callbacks */ parse_config(arg1, arg2); log_open(); @@ -102,8 +104,6 @@ } void main_execute(void) { - ssl_init(); /* initialize SSL library */ - context_init(); /* initialize global SSL context */ /* check if started from inetd */ if(local_options.next) { /* there are service sections -> daemon mode */ daemon_loop();