aboutsummaryrefslogtreecommitdiffstats
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-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
*/