aboutsummaryrefslogtreecommitdiffstats
path: root/ext/openssl/ossl.h
diff options
context:
space:
mode:
authorKazuki Yamaguchi <k@rhe.jp>2016-04-18 23:26:27 +0900
committerKazuki Yamaguchi <k@rhe.jp>2016-04-21 00:46:34 +0900
commit1b930fc27df2089de2f5cf9d41d7a64c56587a87 (patch)
tree402edd69b81c6fe309dc982735f877bfa5ff5707 /ext/openssl/ossl.h
parent0c1e707d0072df557020d3936cca666ab00fd79c (diff)
downloadruby-1b930fc27df2089de2f5cf9d41d7a64c56587a87.tar.gz
drop OpenSSL 0.9.6/0.9.7 supportfeature/openssl-110-old
Diffstat (limited to 'ext/openssl/ossl.h')
-rw-r--r--ext/openssl/ossl.h15
1 files changed, 3 insertions, 12 deletions
diff --git a/ext/openssl/ossl.h b/ext/openssl/ossl.h
index e8271e9d64..a719ea99ee 100644
--- a/ext/openssl/ossl.h
+++ b/ext/openssl/ossl.h
@@ -31,11 +31,6 @@ extern "C" {
#include <ruby/io.h>
#include <ruby/thread.h>
-/*
- * Check the OpenSSL version
- * The only supported are:
- * OpenSSL >= 0.9.7
- */
#include <openssl/opensslv.h>
#ifdef HAVE_ASSERT_H
@@ -46,7 +41,6 @@ extern "C" {
#if defined(_WIN32) && !defined(LIBRESSL_VERSION_NUMBER)
# include <openssl/e_os2.h>
-# define OSSL_NO_CONF_API 1
# if !defined(OPENSSL_SYS_WIN32)
# define OPENSSL_SYS_WIN32 1
# endif
@@ -66,13 +60,10 @@ extern "C" {
#if !defined(_WIN32)
# include <openssl/crypto.h>
#endif
-#undef X509_NAME
-#undef PKCS7_SIGNER_INFO
-#if defined(HAVE_SUPPORT_ENGINE)
+#if !defined(OPENSSL_NO_ENGINE)
# include <openssl/engine.h>
#endif
-#if defined(HAVE_OPENSSL_OCSP_H)
-# define OSSL_OCSP_ENABLED
+#if !defined(OPENSSL_NO_OCSP)
# include <openssl/ocsp.h>
#endif
@@ -118,7 +109,7 @@ extern VALUE eOSSLError;
* Compatibility
*/
#if OPENSSL_VERSION_NUMBER >= 0x10000000L
-#define STACK _STACK
+//define STACK _STACK
#endif
/*