|
30 | 30 | } while (0) |
31 | 31 |
|
32 | 32 | VALUE mSSL; |
33 | | -static VALUE mSSLExtConfig; |
34 | 33 | static VALUE eSSLError; |
35 | 34 | VALUE cSSLContext; |
36 | 35 | VALUE cSSLSocket; |
@@ -2588,16 +2587,6 @@ Init_ossl_ssl(void) |
2588 | 2587 | */ |
2589 | 2588 | mSSL = rb_define_module_under(mOSSL, "SSL"); |
2590 | 2589 |
|
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 | | - |
2601 | 2590 | /* Document-class: OpenSSL::SSL::SSLError |
2602 | 2591 | * |
2603 | 2592 | * Generic error class raised by SSLSocket and SSLContext. |
@@ -2760,8 +2749,6 @@ Init_ossl_ssl(void) |
2760 | 2749 | */ |
2761 | 2750 | rb_attr(cSSLContext, rb_intern_const("session_remove_cb"), 1, 1, Qfalse); |
2762 | 2751 |
|
2763 | | - rb_define_const(mSSLExtConfig, "HAVE_TLSEXT_HOST_NAME", Qtrue); |
2764 | | - |
2765 | 2752 | /* |
2766 | 2753 | * A callback invoked whenever a new handshake is initiated on an |
2767 | 2754 | * established connection. May be used to disable renegotiation entirely. |
@@ -2953,10 +2940,8 @@ Init_ossl_ssl(void) |
2953 | 2940 | */ |
2954 | 2941 | cSSLSocket = rb_define_class_under(mSSL, "SSLSocket", rb_cObject); |
2955 | 2942 | #ifdef OPENSSL_NO_SOCK |
2956 | | - rb_define_const(mSSLExtConfig, "OPENSSL_NO_SOCK", Qtrue); |
2957 | 2943 | rb_define_method(cSSLSocket, "initialize", rb_f_notimplement, -1); |
2958 | 2944 | #else |
2959 | | - rb_define_const(mSSLExtConfig, "OPENSSL_NO_SOCK", Qfalse); |
2960 | 2945 | rb_define_alloc_func(cSSLSocket, ossl_ssl_s_alloc); |
2961 | 2946 | rb_define_method(cSSLSocket, "initialize", ossl_ssl_initialize, -1); |
2962 | 2947 | rb_undef_method(cSSLSocket, "initialize_copy"); |
|
0 commit comments