git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk/modules/ssl@94216
13f79535-47bb-0310-9956-
ffa450edef68
#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 */
/* 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;
}
}
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;
}
BASIC_CONSTRAINTS_free(bc);
return TRUE;
+#else
+ return FALSE;
+#endif
}
/* retrieve subject CommonName of certificate */