aboutsummaryrefslogtreecommitdiffstats
path: root/ext/openssl
diff options
context:
space:
mode:
authorKazuki Yamaguchi <k@rhe.jp>2023-06-07 14:57:03 +0900
committerGitHub <noreply@github.com>2023-06-07 14:57:03 +0900
commit6f1c061fb4d4331a6a645a572b7120f41fa3c173 (patch)
tree55d63f5f3cdcd6e844ffd2f9cd46fd7110385ce8 /ext/openssl
parent775744790356c73be6f0428ac1e59404e19e518a (diff)
parentf6ba75e51e05bdb2a88f33e3825ee7e45bd500b1 (diff)
downloadruby-openssl-6f1c061fb4d4331a6a645a572b7120f41fa3c173.tar.gz
Merge pull request #639 from rhenium/ky/require-ruby-2.7
Drop support for Ruby 2.6
Diffstat (limited to 'ext/openssl')
-rw-r--r--ext/openssl/ossl.c16
-rw-r--r--ext/openssl/ossl.h6
2 files changed, 0 insertions, 22 deletions
diff --git a/ext/openssl/ossl.c b/ext/openssl/ossl.c
index 81069c8b..c3b9f47a 100644
--- a/ext/openssl/ossl.c
+++ b/ext/openssl/ossl.c
@@ -369,22 +369,6 @@ ossl_get_errors(VALUE _)
*/
VALUE dOSSL;
-#if !defined(HAVE_VA_ARGS_MACRO)
-void
-ossl_debug(const char *fmt, ...)
-{
- va_list args;
-
- if (dOSSL == Qtrue) {
- fprintf(stderr, "OSSL_DEBUG: ");
- va_start(args, fmt);
- vfprintf(stderr, fmt, args);
- va_end(args);
- fprintf(stderr, " [CONTEXT N/A]\n");
- }
-}
-#endif
-
/*
* call-seq:
* OpenSSL.debug -> true | false
diff --git a/ext/openssl/ossl.h b/ext/openssl/ossl.h
index facb80aa..8add914f 100644
--- a/ext/openssl/ossl.h
+++ b/ext/openssl/ossl.h
@@ -157,7 +157,6 @@ VALUE ossl_to_der_if_possible(VALUE);
*/
extern VALUE dOSSL;
-#if defined(HAVE_VA_ARGS_MACRO)
#define OSSL_Debug(...) do { \
if (dOSSL == Qtrue) { \
fprintf(stderr, "OSSL_DEBUG: "); \
@@ -166,11 +165,6 @@ extern VALUE dOSSL;
} \
} while (0)
-#else
-void ossl_debug(const char *, ...);
-#define OSSL_Debug ossl_debug
-#endif
-
/*
* Include all parts
*/