https://bugs.ruby-lang.org/https://bugs.ruby-lang.org/favicon.ico?17097754782017-04-05T02:54:36ZRuby Issue Tracking SystemRuby master - Bug #13401: OpenSSL::SSL::SSLSocket :hostname= accessor removedhttps://bugs.ruby-lang.org/issues/13401?journal_id=640732017-04-05T02:54:36Znobu (Nobuyoshi Nakada)nobu@ruby-lang.org
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Assigned</i></li><li><strong>Assignee</strong> set to <i>rhenium (Kazuki Yamaguchi)</i></li></ul> Ruby master - Bug #13401: OpenSSL::SSL::SSLSocket :hostname= accessor removedhttps://bugs.ruby-lang.org/issues/13401?journal_id=640892017-04-06T02:35:48Zrhenium (Kazuki Yamaguchi)k@rhe.jp
<ul><li><strong>Status</strong> changed from <i>Assigned</i> to <i>Third Party's Issue</i></li></ul><p>(Third Party's Issue since new bugs should go to <a href="https://github.com/ruby/openssl" class="external">https://github.com/ruby/openssl</a>)</p>
<p>The accessor still exists, as you see, only if the OpenSSL library with which ext/openssl was compiled supports SNI. This has not changed. Setting the server name directly to the instance variable has never been documented or a proper way.</p> Ruby master - Bug #13401: OpenSSL::SSL::SSLSocket :hostname= accessor removedhttps://bugs.ruby-lang.org/issues/13401?journal_id=641522017-04-10T13:36:01Zpuchuu (Andrew Aladjev)aladjev.andrew@gmail.com
<ul></ul><p>rhenium (Kazuki Yamaguchi) wrote:</p>
<blockquote>
<p>The accessor still exists, as you see, only if the OpenSSL library with which ext/openssl was compiled supports SNI. This has not changed. Setting the server name directly to the instance variable has never been documented or a proper way.</p>
</blockquote>
<p>Hostname was an <strong>attr_accessor</strong> and <strong>@hostname=</strong> worked fine, but now there are <strong>attr_reader</strong> and separate <strong>:hostname=</strong> method. This change could break some applications. Please fix or add new info to the docs. Thank you.</p>
<p>Ok, I will report it to github.</p>