Skip to content

Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →

instance method

OpenSSL::Engine#set_default

(::Integer flag) -> bool
engine.set_default(flag)

Set the defaults for this engine with the given flag.

These flags are used to control combinations of algorithm methods.

flag can be one of the following, other flags are available depending on your OS.

All flags

0xFFFF

No flags

0x0000

See also <openssl/engine.h>

See also #name #load_public_key also in 4.0 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0