diff options
author | zzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-11-13 08:15:48 +0000 |
---|---|---|
committer | zzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-11-13 08:15:48 +0000 |
commit | 33b63fcf93d2116e9e9aa9b4fd9ef91bcaad9b05 (patch) | |
tree | 02404f3dc46c5ab276c34dbc0995fe5261e47dbe /ext/openssl/lib/openssl/buffering.rb | |
parent | 2019f34bc9c9230f4c74febb5e4fa5200fb7cdd6 (diff) | |
download | ruby-33b63fcf93d2116e9e9aa9b4fd9ef91bcaad9b05.tar.gz |
* ext/openssl/lib/openssl/*.rb: [DOC] Document the following:
- Integer#to_bn
- OpenSSL::Buffering module
- Document deprecated OpenSSL::Digest::Digest compatibility class
- OpenSSL::Config
These changes were based on a patch by @vbatts via GH-436
https://github.com/ruby/ruby/pull/436
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43663 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/openssl/lib/openssl/buffering.rb')
-rw-r--r-- | ext/openssl/lib/openssl/buffering.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/openssl/lib/openssl/buffering.rb b/ext/openssl/lib/openssl/buffering.rb index e40dfee667..bf69ac0988 100644 --- a/ext/openssl/lib/openssl/buffering.rb +++ b/ext/openssl/lib/openssl/buffering.rb @@ -18,6 +18,9 @@ # OpenSSL IO buffering mix-in module. # # This module allows an OpenSSL::SSL::SSLSocket to behave like an IO. +# +# You typically won't use this module directly, you can see it implemented in +# OpenSSL::SSL::SSLSocket. module OpenSSL::Buffering include Enumerable @@ -34,6 +37,9 @@ module OpenSSL::Buffering BLOCK_SIZE = 1024*16 + ## + # Creates an instance of OpenSSL's buffering IO module. + def initialize(*args) @eof = false @rbuffer = "" |