--- xchat2/src/common/server.c 2003-01-11 14:26:52.000000000 +1100 +++ xchat2-dynssl/src/common/server.c 2003-01-18 17:45:28.000000000 +1100 @@ -1231,11 +1231,28 @@ server_connect (server *serv, char *hostname, int port, int no_login) { int pid, read_des[2]; session *sess = serv->server_session; + HINSTANCE lib; #ifdef USE_OPENSSL if (!ctx && serv->use_ssl) { + lib = LoadLibrary ("LIBEAY32.dll"); + if (!lib) + { + PrintText (sess, "SSL libraries not installed.\n"); + return; + } + FreeLibrary (lib); + + lib = LoadLibrary ("SSLEAY32.dll"); + if (!lib) + { + PrintText (sess, "SSL libraries not installed.\n"); + return; + } + FreeLibrary (lib); + if (!(ctx = _SSL_context_init (ssl_cb_info, FALSE))) { fprintf (stderr, "_SSL_context_init failed\n");