git://scientific.zcu.cz
/
jra1mw.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cdb59dd
)
Introduced OpenSSL related #if clause for SL4/SL5 compatibility
author
ekenny
<>
Mon, 16 Feb 2009 12:33:10 +0000
(12:33 +0000)
committer
ekenny
<>
Mon, 16 Feb 2009 12:33:10 +0000
(12:33 +0000)
org.gridsite.core/src/mod_gridsite.c
patch
|
blob
|
blame
|
history
diff --git
a/org.gridsite.core/src/mod_gridsite.c
b/org.gridsite.core/src/mod_gridsite.c
index
4fbcfbe
..
deff9f3
100644
(file)
--- 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;