diff options
author | nahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-07-25 04:49:26 +0000 |
---|---|---|
committer | nahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-07-25 04:49:26 +0000 |
commit | 8c30497aaefac8e4b11fd1f564509c75bb6a249b (patch) | |
tree | b1749bf52d2cdfdbfa148f13061f0d7c933f9f4c /ext | |
parent | e80d1f8faf82e66769a47c31671734aff890fdf1 (diff) | |
download | ruby-8c30497aaefac8e4b11fd1f564509c75bb6a249b.tar.gz |
* ext/openssl/lib/openssl/x509.rb: Cosmetic change: move definition
introduced in r30152 to x509-internal.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32662 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r-- | ext/openssl/lib/openssl/x509-internal.rb | 6 | ||||
-rw-r--r-- | ext/openssl/lib/openssl/x509.rb | 10 |
2 files changed, 7 insertions, 9 deletions
diff --git a/ext/openssl/lib/openssl/x509-internal.rb b/ext/openssl/lib/openssl/x509-internal.rb index 11dc2f2722..47e3a6f876 100644 --- a/ext/openssl/lib/openssl/x509-internal.rb +++ b/ext/openssl/lib/openssl/x509-internal.rb @@ -148,5 +148,11 @@ module OpenSSL alias parse parse_openssl end end + + class StoreContext + def cleanup + warn "(#{caller.first}) OpenSSL::X509::StoreContext#cleanup is deprecated with no replacement" if $VERBOSE + end + end end end diff --git a/ext/openssl/lib/openssl/x509.rb b/ext/openssl/lib/openssl/x509.rb index aae75a366e..3f17f5aa29 100644 --- a/ext/openssl/lib/openssl/x509.rb +++ b/ext/openssl/lib/openssl/x509.rb @@ -1,9 +1 @@ -module OpenSSL - module X509 - class StoreContext - def cleanup - warn "(#{caller.first}) OpenSSL::X509::StoreContext#cleanup is deprecated with no replacement" if $VERBOSE - end - end - end -end +require 'openssl' |