From 8308f2738cce3731502b13aed9fa4675efe1d2da Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Wed, 27 Mar 2002 05:50:56 +0000 Subject: [PATCH] sslc does not currently support X509V3_EXT_d2i git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk/modules/ssl@94216 13f79535-47bb-0310-9956-ffa450edef68 --- ssl_toolkit_compat.h | 2 ++ ssl_util_ssl.c | 8 ++++++++ 2 files changed, 10 insertions(+) diff --git a/ssl_toolkit_compat.h b/ssl_toolkit_compat.h index 955e2f099fa..06f95ad3ec5 100644 --- a/ssl_toolkit_compat.h +++ b/ssl_toolkit_compat.h @@ -56,6 +56,8 @@ #define HAVE_SSL_RAND_EGD /* since 9.5.1 */ +#define HAVE_SSL_X509V3_EXT_d2i + #else /* RSA sslc */ /* sslc does not support this function, OpenSSL has since 9.5.1 */ diff --git a/ssl_util_ssl.c b/ssl_util_ssl.c index c574d8db407..750e3a2316f 100644 --- a/ssl_util_ssl.c +++ b/ssl_util_ssl.c @@ -317,6 +317,7 @@ char *SSL_make_ciphersuite(apr_pool_t *p, SSL *ssl) /* check whether cert contains extended key usage with a SGC tag */ BOOL SSL_X509_isSGC(X509 *cert) { +#ifdef HAVE_SSL_X509V3_EXT_d2i X509_EXTENSION *ext; int ext_nid; STACK *sk; @@ -339,11 +340,15 @@ BOOL SSL_X509_isSGC(X509 *cert) } } return is_sgc; +#else + return FALSE; +#endif } /* retrieve basic constraints ingredients */ BOOL SSL_X509_getBC(X509 *cert, int *ca, int *pathlen) { +#ifdef HAVE_SSL_X509V3_EXT_d2i X509_EXTENSION *ext; BASIC_CONSTRAINTS *bc; int idx; @@ -370,6 +375,9 @@ BOOL SSL_X509_getBC(X509 *cert, int *ca, int *pathlen) } BASIC_CONSTRAINTS_free(bc); return TRUE; +#else + return FALSE; +#endif } /* retrieve subject CommonName of certificate */ -- 2.47.2