1
0
mirror of https://github.com/apache/httpd.git synced 2025-08-08 15:02:10 +03:00

another step towards compatiblity with rsa sslc:

define the STACK_OF macro if not already defined.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94194 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Doug MacEachern
2002-03-27 00:46:07 +00:00
parent d37bf62cd7
commit 0fb13a8b4a

View File

@@ -329,6 +329,12 @@ typedef enum {
#ifdef OPENSSL_VERSION_NUMBER
/*
* rsa sslc uses incomplete types for most structures
* so we macroize for OpenSSL those which cannot be dereferenced
* using the same sames as the sslc functions
*/
#define EVP_PKEY_key_type(k) (EVP_PKEY_type(k->type))
#define X509_NAME_get_entries(xs) (xs->entries)
@@ -358,8 +364,16 @@ typedef enum {
#define SSL_set_state(ssl,val) (ssl)->state = val
#else
/* support some OpenSSL-izms for compat with ssl */
#ifndef STACK_OF
#define STACK_OF(type) STACK
#endif
#endif /* OPENSSL_VERSION_NUMBER */
#define ssl_verify_error_is_optional(errnum) \
((errnum == X509_V_ERR_DEPTH_ZERO_SELF_SIGNED_CERT) \
|| (errnum == X509_V_ERR_SELF_SIGNED_CERT_IN_CHAIN) \