From ff3e943d1f0fa78736065bc00e314c1ba310c350 Mon Sep 17 00:00:00 2001 From: drbrain Date: Mon, 29 Nov 2010 20:23:59 +0000 Subject: Improve documentation for URI::Common#encode_www_form, OpenSSL::SSL::SSLContext#ssl_version=. Add documentation for OpenSSL::SSL::SSLContext#ciphers git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29977 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/openssl/ossl_ssl.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'ext/openssl/ossl_ssl.c') diff --git a/ext/openssl/ossl_ssl.c b/ext/openssl/ossl_ssl.c index ea6e04b55a..7fe06c0937 100644 --- a/ext/openssl/ossl_ssl.c +++ b/ext/openssl/ossl_ssl.c @@ -147,6 +147,13 @@ ossl_sslctx_s_alloc(VALUE klass) return Data_Wrap_Struct(klass, 0, ossl_sslctx_free, ctx); } +/* + * call-seq: + * ctx.ssl_version = :TLSv1 + * ctx.ssl_version = "SSLv23_client" + * + * You can get a list of valid methods with OpenSSL::SSL::SSLContext::METHODS + */ static VALUE ossl_sslctx_set_ssl_version(VALUE self, VALUE ssl_method) { @@ -714,6 +721,12 @@ ossl_sslctx_get_ciphers(VALUE self) * ctx.ciphers = "cipher1:cipher2:..." * ctx.ciphers = [name, ...] * ctx.ciphers = [[name, version, bits, alg_bits], ...] + * + * Sets the list of available ciphers for this context. Note in a server + * context some ciphers require the appropriate certificates. For example, an + * RSA cipher can only be chosen when an RSA certificate is available. + * + * See also OpenSSL::Cipher and OpenSSL::Cipher::ciphers */ static VALUE ossl_sslctx_set_ciphers(VALUE self, VALUE v) -- cgit v1.2.3