Try pre-0.9.7 fix for Globus compatibility
authorAndrew McNab <andrew.mcnab@manchester.ac.uk>
Mon, 25 Apr 2005 09:40:28 +0000 (09:40 +0000)
committerAndrew McNab <andrew.mcnab@manchester.ac.uk>
Mon, 25 Apr 2005 09:40:28 +0000 (09:40 +0000)
org.gridsite.core/CHANGES
org.gridsite.core/VERSION
org.gridsite.core/project/version.properties
org.gridsite.core/src/grst_asn1.c
org.gridsite.core/src/grst_x509.c

index 4cc687c..bf6495c 100644 (file)
@@ -1,3 +1,8 @@
+* Mon Apr 25 2005 Andrew McNab <Andrew.McNab@man.ac.uk>
+- Avoid build problems when using pre-0.9.7 OpenSSL
+  (ie with Globus compatibility.)
+* Mon Apr 25 2005 Andrew McNab <Andrew.McNab@man.ac.uk>
+- ==== GridSite version 1.1.8 ====
 * Mon Feb 28 2005 Andrew McNab <Andrew.McNab@man.ac.uk>
 - Fix to GRSTgaclUndenyPerm in gridsite.h (bug #7135)
   from Marco Sottilaro <marco.sottilaro@datamat.it>
index d6bccc5..1b84e6f 100644 (file)
@@ -1,4 +1,4 @@
 MAJOR_VERSION=1
 MINOR_VERSION=1.1
-PATCH_VERSION=1.1.7
+PATCH_VERSION=1.1.8
 VERSION=$(PATCH_VERSION)
index 2d4c657..e47c143 100644 (file)
@@ -71,7 +71,9 @@ static int asn1_print_info(BIO *bp, int tag, int xclass, int constructed,
        else
                p="prim: ";
        if (BIO_write(bp,p,6) < 6) goto err;
+#if OPENSSL_VERSION_NUMBER >= 0x0090701fL
        BIO_indent(bp,indent,128);
+#endif
 
        p=str;
        if ((xclass & V_ASN1_PRIVATE) == V_ASN1_PRIVATE)
index 37cb8a9..ec2b385 100644 (file)
@@ -430,8 +430,10 @@ static int GRSTx509VerifyVomsSig(time_t *time1_time, time_t *time2_time,
             }
             
           OpenSSL_add_all_digests();
+#if OPENSSL_VERSION_NUMBER >= 0x0090701fL
           EVP_MD_CTX_init(&ctx);
           EVP_VerifyInit_ex(&ctx, EVP_md5(), NULL);
+#endif
           
           EVP_VerifyUpdate(&ctx, 
                            &asn1string[taglist[iinfo].start+
@@ -444,7 +446,9 @@ static int GRSTx509VerifyVomsSig(time_t *time1_time, time_t *time2_time,
                                 taglist[isig].length - 1, 
                                 prvkey);
 
-          EVP_MD_CTX_cleanup(&ctx);                      
+#if OPENSSL_VERSION_NUMBER >= 0x0090701fL
+          EVP_MD_CTX_cleanup(&ctx);      
+#endif                
           EVP_PKEY_free(prvkey);
 
           if (ret != 1) /* signature doesnt match, look for more */