Skip to content

Commit eed3894

Browse files
committed
ssl: remove OpenSSL::ExtConfig
This module was introduced in 2015 for internal use within this library. Neither of the two constants in it is used anymore. I don't think we will be adding a new constant in the foreseeable future, either. OPENSSL_NO_SOCK is unused since commit 998d667 (r55191). HAVE_TLSEXT_HOST_NAME is unused since commit 4eb4b32.
1 parent a3d230d commit eed3894

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

ext/openssl/ossl_ssl.c

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
} while (0)
3131

3232
VALUE mSSL;
33-
static VALUE mSSLExtConfig;
3433
static VALUE eSSLError;
3534
VALUE cSSLContext;
3635
VALUE cSSLSocket;
@@ -2588,16 +2587,6 @@ Init_ossl_ssl(void)
25882587
*/
25892588
mSSL = rb_define_module_under(mOSSL, "SSL");
25902589

2591-
/* Document-module: OpenSSL::ExtConfig
2592-
*
2593-
* This module contains configuration information about the SSL extension,
2594-
* for example if socket support is enabled, or the host name TLS extension
2595-
* is enabled. Constants in this module will always be defined, but contain
2596-
* +true+ or +false+ values depending on the configuration of your OpenSSL
2597-
* installation.
2598-
*/
2599-
mSSLExtConfig = rb_define_module_under(mOSSL, "ExtConfig");
2600-
26012590
/* Document-class: OpenSSL::SSL::SSLError
26022591
*
26032592
* Generic error class raised by SSLSocket and SSLContext.
@@ -2760,8 +2749,6 @@ Init_ossl_ssl(void)
27602749
*/
27612750
rb_attr(cSSLContext, rb_intern_const("session_remove_cb"), 1, 1, Qfalse);
27622751

2763-
rb_define_const(mSSLExtConfig, "HAVE_TLSEXT_HOST_NAME", Qtrue);
2764-
27652752
/*
27662753
* A callback invoked whenever a new handshake is initiated on an
27672754
* established connection. May be used to disable renegotiation entirely.
@@ -2953,10 +2940,8 @@ Init_ossl_ssl(void)
29532940
*/
29542941
cSSLSocket = rb_define_class_under(mSSL, "SSLSocket", rb_cObject);
29552942
#ifdef OPENSSL_NO_SOCK
2956-
rb_define_const(mSSLExtConfig, "OPENSSL_NO_SOCK", Qtrue);
29572943
rb_define_method(cSSLSocket, "initialize", rb_f_notimplement, -1);
29582944
#else
2959-
rb_define_const(mSSLExtConfig, "OPENSSL_NO_SOCK", Qfalse);
29602945
rb_define_alloc_func(cSSLSocket, ossl_ssl_s_alloc);
29612946
rb_define_method(cSSLSocket, "initialize", ossl_ssl_initialize, -1);
29622947
rb_undef_method(cSSLSocket, "initialize_copy");

0 commit comments

Comments
 (0)