mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/openssl/lib/openssl/buffering.rb: Return ASCII-8BIT strings from
SSLSocket methods. [ruby-trunk - Bug #9028] * test/openssl/test_ssl.rb: Test for the above. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43964 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
2c052a0661
commit
e45f56d5db
3 changed files with 21 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
Tue Dec 3 10:43:58 2013 Eric Hodel <drbrain@segment7.net>
|
||||
|
||||
* ext/openssl/lib/openssl/buffering.rb: Return ASCII-8BIT strings from
|
||||
SSLSocket methods. [ruby-trunk - Bug #9028]
|
||||
* test/openssl/test_ssl.rb: Test for the above.
|
||||
|
||||
Tue Dec 3 09:42:27 2013 Eric Hodel <drbrain@segment7.net>
|
||||
|
||||
* lib/rdoc: Update to RDoc master 900de99. Changes include:
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#
|
||||
# coding: binary
|
||||
#--
|
||||
#= $RCSfile$ -- Buffering mix-in module.
|
||||
#
|
||||
|
|
|
@ -30,6 +30,20 @@ class OpenSSL::TestSSL < OpenSSL::SSLTestCase
|
|||
end
|
||||
end
|
||||
|
||||
def test_ssl_gets
|
||||
start_server(PORT, OpenSSL::SSL::VERIFY_NONE, true) { |server, port|
|
||||
server_connect(port) { |ssl|
|
||||
ssl.write "abc\n"
|
||||
IO.select [ssl]
|
||||
|
||||
line = ssl.gets
|
||||
|
||||
assert_equal "abc\n", line
|
||||
assert_equal Encoding::BINARY, line.encoding
|
||||
}
|
||||
}
|
||||
end
|
||||
|
||||
def test_ssl_read_nonblock
|
||||
start_server(PORT, OpenSSL::SSL::VERIFY_NONE, true) { |server, port|
|
||||
server_connect(port) { |ssl|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue