Results for: "partition"

$foo ||= bar

becomes

defined?($foo) ? $foo : $foo = bar

$foo += bar

becomes

$foo = $foo + bar

@foo &&= bar

becomes

@foo && @foo = bar

@foo ||= bar

becomes

@foo || @foo = bar

@foo += bar

becomes

@foo = @foo + bar

foo &&= bar

becomes

foo && foo = bar

foo ||= bar

becomes

foo || foo = bar

foo += bar

becomes

foo = foo + bar

def foo(…); end ^^^

-> { it } ^^^^^^^^^

foo, bar = baz ^^^^^^^^

foo, bar = baz ^^^^^^^^^^^^^^

/foo/ ^^^^^

When the content of a string node is split across multiple lines, the parser gem creates individual string nodes for each line the content is part of.

def foo(...); end
        ^^^
foo, bar = baz
^^^^^^^^
foo, bar = baz
^^^^^^^^^^^^^^
/foo/
^^^^^

Validates the Diffie-Hellman parameters associated with this instance. It checks whether a safe prime and a suitable generator are used. If this is not the case, false is returned.

See also the man page EVP_PKEY_param_check(3).

Obtains a list of all predefined curves by the OpenSSL. Curve names are returned as sn.

See the OpenSSL documentation for EC_get_builtin_curves().

Sets saner defaults optimized for the use with HTTP-like protocols.

If a Hash params is given, the parameters are overridden with it. 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.

Sets the SSL/TLS protocol version for the context. This forces connections to use only the specified protocol version. This is deprecated and only provided for backwards compatibility. Use min_version= and max_version= instead.

History

As the name hints, this used to call the SSL_CTX_set_ssl_version() function which sets the SSL method used for connections created from the context. As of Ruby/OpenSSL 2.1, this accessor method is implemented to call min_version= and max_version= instead.

Sets the lower bound on the supported SSL/TLS protocol version. The version may be specified by an integer constant named OpenSSL::SSL::*_VERSION, a Symbol, or nil which means “any version”.

Example

ctx = OpenSSL::SSL::SSLContext.new
ctx.min_version = OpenSSL::SSL::TLS1_1_VERSION
ctx.max_version = OpenSSL::SSL::TLS1_2_VERSION

sock = OpenSSL::SSL::SSLSocket.new(tcp_sock, ctx)
sock.connect # Initiates a connection using either TLS 1.1 or TLS 1.2

Sets the upper bound of the supported SSL/TLS protocol version. See min_version= for the possible values.

Adds session to the session cache.

Search took: 4ms  ·  Total Results: 2830