From: Doug MacEachern Date: Wed, 27 Mar 2002 00:46:07 +0000 (+0000) Subject: another step towards compatiblity with rsa sslc: X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=26fcfc756b4e894717f1abb20fdfb8ac574a3532;p=thirdparty%2Fapache%2Fhttpd.git 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/modules/ssl@94194 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/mod_ssl.h b/mod_ssl.h index e83ed601d02..e165bb296b7 100644 --- a/mod_ssl.h +++ b/mod_ssl.h @@ -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) \