Re: cvs, failed to build



On 10/14/2005 04:36:26 PM, Jean-Luc Coulon (f5ibh) wrote:
Hi,

I failed builiding the cvs.

ChangeLog revision: 1.2175

Here are the error messages:

[snip]
imap-tls.c: In function `imap_check_server_identity':
imap-tls.c:271: warning: passing arg 2 of pointer to function from incompatible pointer type

Have you upgraded your compiler or openssl library recently? No, problem is most likely on balsa side. Can you please try attached patch?

Pawel
Index: libbalsa/imap/imap-tls.c
===================================================================
RCS file: /cvs/gnome/balsa/libbalsa/imap/imap-tls.c,v
retrieving revision 1.15
diff -u -r1.15 imap-tls.c
--- libbalsa/imap/imap-tls.c	8 Feb 2005 10:36:36 -0000	1.15
+++ libbalsa/imap/imap-tls.c	14 Oct 2005 17:37:10 -0000
@@ -262,14 +262,22 @@
       STACK_OF(CONF_VALUE) *val;
       CONF_VALUE           *nval;
       X509V3_EXT_METHOD    *meth;
+      void *ext_str = NULL;
 
       if( !(meth = X509V3_EXT_get(ext)) )
         break;
       data = ext->value->data;
 
-      val = meth->i2v(meth,
-                      meth->d2i(NULL, &data, ext->value->length),
-                      NULL);
+#if (OPENSSL_VERSION_NUMBER > 0x00907000L)
+      if (meth->it)
+        ext_str = ASN1_item_d2i (NULL, &data, ext->value->length,
+                                 ASN1_ITEM_ptr (meth->it));
+      else
+        ext_str = meth->d2i (NULL, &data, ext->value->length);
+#else
+      ext_str = meth->d2i(NULL, &data, ext->value->length);
+#endif
+      val = meth->i2v(meth, ext_str, NULL);
 
       stack_len = sk_CONF_VALUE_num(val);
       for(j=0; j<stack_len; j++) {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]