[xmlsec] Problem compiling on Mac OS X

Aleksey Sanin aleksey@aleksey.com
Fri, 06 Jun 2003 14:57:44 -0700


This is a multi-part message in MIME format.
--------------000901030309070401050400
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Sick! You are right, there is a problem with stock openssl on Mac.
My configure script picked up local openssl 0.9.7 copy I have compiled
from sources. When I use the one that comes from fink I also have same
build error. You have two options:
    1) (prefered) get openssl 0.9.7 and compile it by yourself
    2) apply the attached patch (it is also check in cvs).



Thanks for bug report!
Aleksey

--------------000901030309070401050400
Content-Type: text/plain;
 name="x509.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="x509.diff"

? TODO
? scripts/test_build.sh
Index: src/openssl/x509.c
===================================================================
RCS file: /cvs/gnome/xmlsec/src/openssl/x509.c,v
retrieving revision 1.35
diff -u -r1.35 x509.c
--- src/openssl/x509.c	4 Jun 2003 15:26:39 -0000	1.35
+++ src/openssl/x509.c	6 Jun 2003 21:54:44 -0000
@@ -1455,6 +1455,7 @@
     xmlSecAssert2(res != NULL, -1);
 
     (*res) = 0;
+#ifndef XMLSEC_OPENSSL_096
     if(!ASN1_TIME_check(t)) {
 	xmlSecError(XMLSEC_ERRORS_HERE,
 		    NULL,
@@ -1463,6 +1464,7 @@
 		    XMLSEC_ERRORS_NO_MESSAGE);
 	return(-1);
     }
+#endif /* XMLSEC_OPENSSL_096 */
         
     memset(&tm, 0, sizeof(tm));
 

--------------000901030309070401050400--