I recently made a pull request to JRuby (
https://github.com/jruby/jruby/pull/349) to add support for client-side
SNI.  After making the patch I noticed that I was failing a unit test that
they pull from MRI, specifically test/openssl/test_ssl.rb
(test_tlsext_hostname).  This unit test validates that the client supports
SNI, but not the server (i.e. supports servername_cb).  As of JAVA 7 there
is support for client SNI, but not server.  As such, it is only
possible/practical to patch JRuby to support client connections to SNI
capable/required servers.  My patch simply adds an additional requirement
that server-side SNI is supported before trying to run this specific unit
test.

Patrick
(supressed text/html)SW5kZXg6IHRlc3Qvb3BlbnNzbC90ZXN0X3NzbC5yYgo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSB0ZXN0L29wZW5z
c2wvdGVzdF9zc2wucmIJKHJldmlzaW9uIDM3Mjg0KQorKysgdGVzdC9vcGVuc3NsL3Rlc3Rfc3Ns
LnJiCSh3b3JraW5nIGNvcHkpCkBAIC0zMzMsNyArMzMzLDggQEAKICAgZW5kCiAKICAgZGVmIHRl
c3RfdGxzZXh0X2hvc3RuYW1lCi0gICAgcmV0dXJuIHVubGVzcyBPcGVuU1NMOjpTU0w6OlNTTFNv
Y2tldC5pbnN0YW5jZV9tZXRob2RzLmluY2x1ZGU/KDpob3N0bmFtZSkKKyAgICByZXR1cm4gdW5s
ZXNzIE9wZW5TU0w6OlNTTDo6U1NMU29ja2V0Lmluc3RhbmNlX21ldGhvZHMuaW5jbHVkZT8oOmhv
c3RuYW1lKSAmJgorICAgICAgICAgICAgICAgICAgT3BlblNTTDo6U1NMOjpTU0xDb250ZXh0Lmlu
c3RhbmNlX21ldGhvZHMuaW5jbHVkZT8oOnNlcnZlcm5hbWVfY2IpCiAKICAgICBjdHhfcHJvYyA9
IFByb2MubmV3IGRvIHxjdHgsIHNzbHwKICAgICAgIGZvb19jdHggPSBjdHguZHVwCg==