Introduced OpenSSL related #if clause for SL4/SL5 compatibility
authorekenny <>
Mon, 16 Feb 2009 12:33:10 +0000 (12:33 +0000)
committerekenny <>
Mon, 16 Feb 2009 12:33:10 +0000 (12:33 +0000)
org.gridsite.core/src/mod_gridsite.c

index 4fbcfbe..deff9f3 100644 (file)
@@ -2572,7 +2572,11 @@ int GRST_X509_check_issued_wrapper(X509_STORE_CTX *ctx,X509 *x,X509 *issuer)
                            X509_get_subject_name(x)) != 0)) return 1;
  
     /* If we haven't asked for issuer errors don't set ctx */
-    if (!(ctx->flags & X509_V_FLAG_CB_ISSUER_CHECK)) return 0;
+    #if OPENSSL_VERSION_NUMBER < 0x00908000
+      if (!(ctx->flags & X509_V_FLAG_CB_ISSUER_CHECK)) return 0;
+    #else
+      if (!((ctx->param)->flags & X509_V_FLAG_CB_ISSUER_CHECK)) return 0;
+    #endif
   
     ctx->error = ret;
     ctx->current_cert = x;