Permalink
Browse files

* ext/openssl/lib/openssl/ssl.rb (class OpenSSL::SSL::SSLContext):

  Document #set_params.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33695 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information...
1 parent b5167b4 commit a5fc87bd5ba21f1704e566344653f6d9d381fa8f @drbrain drbrain committed Nov 9, 2011
Showing with 13 additions and 0 deletions.
  1. +5 −0 ChangeLog
  2. +8 −0 ext/openssl/lib/openssl/ssl.rb
View
@@ -1,3 +1,8 @@
+Thu Nov 10 07:45:16 2011 Eric Hodel <drbrain@segment7.net>
+
+ * ext/openssl/lib/openssl/ssl.rb (class OpenSSL::SSL::SSLContext):
+ Document #set_params.
+
Wed Nov 9 11:36:53 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* thread_pthread.c (gvl_yield): don't prevent concurrent sched_yield().
@@ -33,6 +33,14 @@ class SSLContext
DEFAULT_CERT_STORE.flags = OpenSSL::X509::V_FLAG_CRL_CHECK_ALL
end
+ ##
+ # Sets the parameters for this SSL context to the values in +params+.
+ # The keys in +params+ must be assignment methods on SSLContext.
+ #
+ # If the verify_mode is not VERIFY_NONE and ca_file, ca_path and
+ # cert_store are not set then the system default certificate store is
+ # used.
+
def set_params(params={})
params = DEFAULT_PARAMS.merge(params)
params.each{|name, value| self.__send__("#{name}=", value) }

0 comments on commit a5fc87b

Please sign in to comment.