[ruby/openssl] ssl: improve documentation of SSLContext#options=

https://github.com/ruby/openssl/commit/9120fcde6a
This commit is contained in:
Kazuki Yamaguchi 2024-06-12 02:26:18 +09:00 committed by git
parent 09d516b62e
commit 33196b7ab0

View File

@ -746,7 +746,10 @@ ssl_info_cb(const SSL *ssl, int where, int val)
}
/*
* Gets various OpenSSL options.
* call-seq:
* ctx.options -> integer
*
* Gets various \OpenSSL options.
*/
static VALUE
ossl_sslctx_get_options(VALUE self)
@ -761,7 +764,17 @@ ossl_sslctx_get_options(VALUE self)
}
/*
* Sets various OpenSSL options.
* call-seq:
* ctx.options = integer
*
* Sets various \OpenSSL options. The options are a bit field and can be
* combined with the bitwise OR operator (<tt>|</tt>). Available options are
* defined as constants in OpenSSL::SSL that begin with +OP_+.
*
* For backwards compatibility, passing +nil+ has the same effect as passing
* OpenSSL::SSL::OP_ALL.
*
* See also man page SSL_CTX_set_options(3).
*/
static VALUE
ossl_sslctx_set_options(VALUE self, VALUE options)