ENGINE_set_default

Register e as the default ENGINE for the method flags given.

Synopsis

Declared in <openssl/engine.h>

[[deprecated]]
int
ENGINE_set_default(
    ENGINE* e,
    unsigned int flags);

WARNING

Deprecated. Use of this entity is allowed but discouraged.

Description

Prefer the selective ENGINE_set_default_* helpers when only a few method kinds are needed, to avoid pulling unused static ENGINE code into the link.

Return Value

1 on success, or 0 on error.

Parameters

NameDescription
eENGINE to install as default for the selected method kinds.
flagsBitwise OR of ENGINE_METHOD_* selectors (e.g. ENGINE_METHOD_ALL).