Results for: "strip"

The path to standard location of the user’s state file.

The path to standard location of the user’s state directory.

Returns an estimate of the resolution of a clock_id using the POSIX clock_getres() function.

Note the reported resolution is often inaccurate on most platforms due to underlying bugs for this function and therefore the reported resolution often differs from the actual resolution of the clock in practice. Inaccurate reported resolutions have been observed for various clocks including CLOCK_MONOTONIC and CLOCK_MONOTONIC_RAW when using Linux, macOS, BSD or AIX platforms, when using ARM processors, or when using virtualization.

clock_id specifies a kind of clock. See the document of Process.clock_gettime for details. clock_id can be a symbol as for Process.clock_gettime.

If the given clock_id is not supported, Errno::EINVAL is raised.

unit specifies the type of the return value. Process.clock_getres accepts unit as Process.clock_gettime. The default value, :float_second, is also the same as Process.clock_gettime.

Process.clock_getres also accepts :hertz as unit. :hertz means the reciprocal of :float_second.

:hertz can be used to obtain the exact value of the clock ticks per second for the times() function and CLOCKS_PER_SEC for the clock() function.

Process.clock_getres(:TIMES_BASED_CLOCK_PROCESS_CPUTIME_ID, :hertz) returns the clock ticks per second.

Process.clock_getres(:CLOCK_BASED_CLOCK_PROCESS_CPUTIME_ID, :hertz) returns CLOCKS_PER_SEC.

p Process.clock_getres(Process::CLOCK_MONOTONIC)
#=> 1.0e-09
No documentation available
No documentation available
No documentation available

Indicates whether this DH instance has a private key associated with it or not. The private key may be retrieved with DH#priv_key.

Verifies whether the signature is valid given the message digest input. It does so by validating sig using the public key of this DSA instance.

Deprecated in version 3.0. Consider using PKey::PKey#sign_raw and PKey::PKey#verify_raw instead.

digest

A message digest of the original input data to be signed.

sig

A DSA signature value.

Indicates whether this DSA instance has a private key associated with it or not. The private key may be retrieved with DSA#private_key.

Returns whether this EC instance has a private key. The private key (BN) can be retrieved with EC#private_key.

Does this keypair contain a private key?

The list of cipher suites configured for this context.

Sets the list of available cipher suites for this context. Note in a server context some ciphers require the appropriate certificates. For example, an RSA cipher suite can only be chosen when an RSA certificate is available.

Sets the list of available TLSv1.3 cipher suites for this context.

Writes string to the SSL connection.

Sends “close notify” to the peer and tries to shut down the SSL connection gracefully.

Returns the cipher suite actually used in the current session, or nil if no session has been established.

A description of the current connection state. This is for diagnostic purposes only.

Sets the server hostname used for SNI. This needs to be set before SSLSocket#connect.

See TCPServer#listen for details.

No documentation available
No documentation available

Performs the certificate verification using the parameters set to stctx.

See also the man page X509_verify_cert(3).

No documentation available
No documentation available
Search took: 4ms  ·  Total Results: 1534