From ad098d08349c579ed8a2f2ec74f17858a380f5d7 Mon Sep 17 00:00:00 2001 From: Yuta Saito Date: Thu, 22 Dec 2022 19:25:12 +0000 Subject: [PATCH] Remove unused internal constant `SSL::ExtConfig` --- ext/openssl/ossl_ssl.c | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/ext/openssl/ossl_ssl.c b/ext/openssl/ossl_ssl.c index bbf7adb91..888913d69 100644 --- a/ext/openssl/ossl_ssl.c +++ b/ext/openssl/ossl_ssl.c @@ -29,7 +29,6 @@ TypedData_Get_Struct((obj), SSL_CTX, &ossl_sslctx_type, (ctx)); \ } while (0) -static VALUE mSSLExtConfig; #ifndef OPENSSL_NO_SOCK VALUE mSSL; @@ -2591,21 +2590,7 @@ Init_ossl_ssl(void) mSSL = rb_define_module_under(mOSSL, "SSL"); #endif /* !defined(OPENSSL_NO_SOCK) */ - /* Document-module: OpenSSL::ExtConfig - * - * This module contains configuration information about the SSL extension, - * for example if socket support is enabled, or the host name TLS extension - * is enabled. Constants in this module will always be defined, but contain - * +true+ or +false+ values depending on the configuration of your OpenSSL - * installation. - */ - mSSLExtConfig = rb_define_module_under(mOSSL, "ExtConfig"); - -#ifdef OPENSSL_NO_SOCK - rb_define_const(mSSLExtConfig, "OPENSSL_NO_SOCK", Qfalse); -#else - rb_define_const(mSSLExtConfig, "OPENSSL_NO_SOCK", Qtrue); - +#ifndef OPENSSL_NO_SOCK /* Document-class: OpenSSL::SSL::SSLError * * Generic error class raised by SSLSocket and SSLContext. @@ -2768,8 +2753,6 @@ Init_ossl_ssl(void) */ rb_attr(cSSLContext, rb_intern_const("session_remove_cb"), 1, 1, Qfalse); - rb_define_const(mSSLExtConfig, "HAVE_TLSEXT_HOST_NAME", Qtrue); - /* * A callback invoked whenever a new handshake is initiated on an * established connection. May be used to disable renegotiation entirely.