--- Crypt-SSLeay-0.51/SSLeay.xs.orig	2006-03-29 09:49:11.000000000 +0100
+++ Crypt-SSLeay-0.51/SSLeay.xs	2006-03-29 09:50:50.000000000 +0100
@@ -40,7 +40,7 @@
  */
 
 
-static void InfoCallback(SSL *s,int where,int ret)
+static void InfoCallback(const SSL *s,int where,int ret)
     {
     char *str;
     int w;
@@ -107,9 +107,10 @@
         int rand_bytes_read;
 
 	if(!bNotFirstTime) {
-               SSLeay_add_all_algorithms();
                SSL_load_error_strings();
                ERR_load_crypto_strings();
+               SSL_library_init();
+	       SSLeay_add_all_algorithms();
 	       bNotFirstTime = 1;
         }
 
