[ruby/openssl] Drop support for Ruby 2.6
Ruby 2.6 has reached EOL on 2022-03. Requiring Ruby 2.7 allows us to use C99 syntax. https://github.com/ruby/openssl/commit/f6ba75e51e
This commit is contained in:
parent
bc0539a9b7
commit
397ebbc62d
@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
|
|||||||
spec.extra_rdoc_files = Dir["*.md"]
|
spec.extra_rdoc_files = Dir["*.md"]
|
||||||
spec.rdoc_options = ["--main", "README.md"]
|
spec.rdoc_options = ["--main", "README.md"]
|
||||||
|
|
||||||
spec.required_ruby_version = ">= 2.6.0"
|
spec.required_ruby_version = ">= 2.7.0"
|
||||||
|
|
||||||
spec.metadata["msys2_mingw_dependencies"] = "openssl"
|
spec.metadata["msys2_mingw_dependencies"] = "openssl"
|
||||||
end
|
end
|
||||||
|
@ -369,22 +369,6 @@ ossl_get_errors(VALUE _)
|
|||||||
*/
|
*/
|
||||||
VALUE dOSSL;
|
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:
|
* call-seq:
|
||||||
* OpenSSL.debug -> true | false
|
* OpenSSL.debug -> true | false
|
||||||
|
@ -157,7 +157,6 @@ VALUE ossl_to_der_if_possible(VALUE);
|
|||||||
*/
|
*/
|
||||||
extern VALUE dOSSL;
|
extern VALUE dOSSL;
|
||||||
|
|
||||||
#if defined(HAVE_VA_ARGS_MACRO)
|
|
||||||
#define OSSL_Debug(...) do { \
|
#define OSSL_Debug(...) do { \
|
||||||
if (dOSSL == Qtrue) { \
|
if (dOSSL == Qtrue) { \
|
||||||
fprintf(stderr, "OSSL_DEBUG: "); \
|
fprintf(stderr, "OSSL_DEBUG: "); \
|
||||||
@ -166,11 +165,6 @@ extern VALUE dOSSL;
|
|||||||
} \
|
} \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
#else
|
|
||||||
void ossl_debug(const char *, ...);
|
|
||||||
#define OSSL_Debug ossl_debug
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Include all parts
|
* Include all parts
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user