On Sat, Oct 29, 2005 at 07:34:24AM +1000, NormW wrote:
> In getting SVN 1.2.3 to compile for NetWare using the current 0.9.8a 
> release of OpenSSL, my compiler complained about the following in 
> ne_openssl.c:

Thanks for the report; yes, current versions of neon have only been 
tested with OpenSSL 0.9.7 (and 0.9.6-ish should work too).  I've added 
the patch to fix the type mismatch for future releases.  (attached for 
reference)

Regards,

joe
Index: src/ne_openssl.c
===================================================================
--- src/ne_openssl.c    (revision 736)
+++ src/ne_openssl.c    (working copy)
@@ -53,6 +53,13 @@
 #define OBJ_cmp(a,b) OBJ_cmp((ASN1_OBJECT *)(a), (ASN1_OBJECT *)(b))
 #endif
 
+/* Second argument for d2i_X509() changed type in 0.9.8. */
+#if OPENSSL_VERSION_NUMBER < 0x0090800fL
+typedef unsigned char ne_d2i_uchar;
+#else
+typedef const unsigned char ne_d2i_uchar;
+#endif
+
 struct ne_ssl_dname_s {
     X509_NAME *dn;
 };
@@ -862,7 +869,8 @@
 
 ne_ssl_certificate *ne_ssl_cert_import(const char *data)
 {
-    unsigned char *der, *p;
+    unsigned char *der;
+    ne_d2i_uchar *p;
     size_t len;
     X509 *x5;
     
_______________________________________________
neon mailing list
[email protected]
http://mailman.webdav.org/mailman/listinfo/neon

Reply via email to