OSSL_ENCODER_CTX_set_passphrase_ui

Set a UI method for passphrase prompting on an encoder context.

Synopsis

Declared in <openssl/encoder.h>

int
OSSL_ENCODER_CTX_set_passphrase_ui(
    OSSL_ENCODER_CTX* ctx,
    UI_METHOD const* ui_method,
    void* ui_data);

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
ctxEncoder context to configure.
ui_methodUI_METHOD used to read passphrases, or NULL for the default.
ui_dataApplication data passed to the UI method.