diff options
author | GOTOU Yuuzou <gotoyuzo@notwork.org> | 2003-07-21 21:14:13 +0000 |
---|---|---|
committer | GOTOU Yuuzou <gotoyuzo@notwork.org> | 2003-07-21 21:14:13 +0000 |
commit | 618d88f50f4554fa6513f13e71af3b5b78224623 (patch) | |
tree | 46c458622d4e279586f3408d0610f7d8c756b712 | |
parent | a3bb096f9c0a1f467ab84f71a1deb08e67bacfa6 (diff) | |
download | ruby-openssl-history-618d88f50f4554fa6513f13e71af3b5b78224623.tar.gz |
*** empty log message ***
-rw-r--r-- | ChangeLog | 1 | ||||
-rw-r--r-- | lib/net/ftptls.rb | 19 | ||||
-rw-r--r-- | lib/openssl/ssl.rb | 4 |
3 files changed, 5 insertions, 19 deletions
@@ -1,5 +1,6 @@ Tue, 22 Jul 2003 06:08:05 +0900 -- GOTOU Yuuzou <gotoyuzo@notwork.org> * lib/**/*.rb: adjust indent. + * lib/openssl/ssl.rb: new methods addr, peeraddr, closed?. Tue, 22 Jul 2003 04:37:58 +0900 -- GOTOU Yuuzou <gotoyuzo@notwork.org> * further OpenSSL 0.9.6 compatibility diff --git a/lib/net/ftptls.rb b/lib/net/ftptls.rb index 946ab3e..f433457 100644 --- a/lib/net/ftptls.rb +++ b/lib/net/ftptls.rb @@ -27,24 +27,6 @@ require 'socket' require 'openssl' require 'net/ftp' -module OpenSSL - module SSL - class SSLSocket - def addr - return @io.addr - end - - def peeraddr - return @io.peeraddr - end - - def closed? - return @io.closed? - end - end - end -end - module Net class FTPTLS < FTP def login(user = "anonymous", passwd = nil, acct = nil) @@ -59,4 +41,3 @@ module Net end end end - diff --git a/lib/openssl/ssl.rb b/lib/openssl/ssl.rb index 14223f2..e434941 100644 --- a/lib/openssl/ssl.rb +++ b/lib/openssl/ssl.rb @@ -28,6 +28,10 @@ module OpenSSL def peeraddr @io.peeraddr end + + def closed? + @io.closed? + end end end end |