From: ekenny <> Date: Mon, 16 Feb 2009 12:33:10 +0000 (+0000) Subject: Introduced OpenSSL related #if clause for SL4/SL5 compatibility X-Git-Tag: gridsite-core_R_1_1_19_2~1 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=28b2da0e51b29aa988fd2d1f02fee3afefffd69b;p=jra1mw.git Introduced OpenSSL related #if clause for SL4/SL5 compatibility --- diff --git a/org.gridsite.core/src/mod_gridsite.c b/org.gridsite.core/src/mod_gridsite.c index 4fbcfbe..deff9f3 100644 --- a/org.gridsite.core/src/mod_gridsite.c +++ b/org.gridsite.core/src/mod_gridsite.c @@ -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;