diff -urp c:\f\curl-old/curl/lib/ssluse.c c:\f\curl-new/curl/lib/ssluse.c
--- c:\f\curl-old/curl/lib/ssluse.c	2005-12-04 19:47:36.000000000 +0100
+++ c:\f\curl-new/curl/lib/ssluse.c	2005-12-05 15:38:40.093750000 +0100
@@ -104,11 +104,16 @@
 #undef HAVE_PKCS12_SUPPORT
 #endif
 
-
 #if OPENSSL_VERSION_NUMBER >= 0x00906001L
 #define HAVE_ERR_ERROR_STRING_N 1
 #endif
 
+#if OPENSSL_VERSION_NUMBER >= 0x00909000L
+#define SSL_METHOD_QUAL const
+#else
+#define SSL_METHOD_QUAL
+#endif
+
 /*
  * Number of bytes to read from the random number seed file. This must be
  * a finite value (because some entropy "files" like /dev/urandom have
@@ -1121,7 +1126,7 @@ Curl_ossl_connect(struct connectdata *co
   long lerr;
   int what;
   char * str;
-  const SSL_METHOD *req_method;
+  SSL_METHOD_QUAL SSL_METHOD *req_method=NULL;
   void *ssl_sessionid=NULL;
   ASN1_TIME *certdate;
   curl_socket_t sockfd = conn->sock[sockindex];

