Supply a passphrase for decrypting encoded private‐key input.

Synopsis

Declared in <openssl/decoder.h>

int
OSSL_DECODER_CTX_set_passphrase(
    OSSL_DECODER_CTX* ctx,
    unsigned char const* kstr,
    size_t klen);

Return Value

1 on success, or 0 on error.

Parameters

Name

Description

ctx

Decoder context to configure.

kstr

Passphrase bytes.

klen

Length of kstr in bytes.

Created with MrDocs