diff options
author | GOTOU Yuuzou <gotoyuzo@notwork.org> | 2002-07-28 21:50:43 +0000 |
---|---|---|
committer | GOTOU Yuuzou <gotoyuzo@notwork.org> | 2002-07-28 21:50:43 +0000 |
commit | 705f8c545588cdff2a649a5496e831563c7dc679 (patch) | |
tree | 7626793bfb385f9f02f86fa096b7396fea13378c /lib/openssl/ssl.rb | |
parent | 7f7af7da281bb4d65532a699f0dcf63bab7a11ff (diff) | |
download | ruby-openssl-history-705f8c545588cdff2a649a5496e831563c7dc679.tar.gz |
* lib/openssl/buffering.rb: typo fixed (sent by Hiroshi Nakamura)
* lib/openssl/openssl.rb: fixed for new implementation.
* ossl_ssl.c: change the license (from BSDL to Ruby's).
* ossl_ssl.c: new class SSLContext:
ciphers, cert, cert_file, key, key_file, ca_cert, ca_file,
timeout, verify_mode, verify_depth and verify_callback
were moved from SSLSocket.
* ossl_ssl.c: change the spec of arguments of SSLSocket.new.
sample:
ctx = SSL::SSLContext.new
ssl = SSL::SSLSocket.new(ctx)
ssl.io = TCPSocket.new(host, port)
...
Diffstat (limited to 'lib/openssl/ssl.rb')
-rw-r--r-- | lib/openssl/ssl.rb | 26 |
1 files changed, 5 insertions, 21 deletions
diff --git a/lib/openssl/ssl.rb b/lib/openssl/ssl.rb index 2ce8a67..ffd0479 100644 --- a/lib/openssl/ssl.rb +++ b/lib/openssl/ssl.rb @@ -14,29 +14,13 @@ $Id$ =end -## -# Should we care what if somebody require this file directly? -#require 'openssl' - require 'openssl/buffering' -require 'thread' module OpenSSL -module SSL - -class SSLSocket - include Buffering - CallbackMutex = Mutex.new - - def connect - CallbackMutex.synchronize{ __connect } + module SSL + class SSLSocket + include Buffering + end end - - def accept - CallbackMutex.synchronize{ __accept } - end -end # SSLSocket - -end # SSL -end # OpenSSL +end |