mirror of
https://github.com/ruby/ruby.git
synced 2025-09-22 20:14:02 +02:00
* ext/openssl: imported.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4128 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
fd46a1da0a
commit
231247c010
63 changed files with 12561 additions and 0 deletions
38
ext/openssl/lib/openssl/ssl.rb
Normal file
38
ext/openssl/lib/openssl/ssl.rb
Normal file
|
@ -0,0 +1,38 @@
|
|||
=begin
|
||||
= $RCSfile$ -- Ruby-space definitions that completes C-space funcs for SSL
|
||||
|
||||
= Info
|
||||
'OpenSSL for Ruby 2' project
|
||||
Copyright (C) 2001 GOTOU YUUZOU <gotoyuzo@notwork.org>
|
||||
All rights reserved.
|
||||
|
||||
= Licence
|
||||
This program is licenced under the same licence as Ruby.
|
||||
(See the file 'LICENCE'.)
|
||||
|
||||
= Version
|
||||
$Id$
|
||||
=end
|
||||
|
||||
require 'openssl/buffering'
|
||||
|
||||
module OpenSSL
|
||||
module SSL
|
||||
class SSLSocket
|
||||
include Buffering
|
||||
|
||||
def addr
|
||||
@io.addr
|
||||
end
|
||||
|
||||
def peeraddr
|
||||
@io.peeraddr
|
||||
end
|
||||
|
||||
def closed?
|
||||
@io.closed?
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue