[#OSSL_ENCODER_CTX_set_passphrase] = OSSL_ENCODER_CTX_set_passphrase :mrdocs: Set a passphrase used when the encoder encrypts private‐key output. == Synopsis Declared in `<openssl/encoder.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int OSSL_ENCODER_CTX_set_passphrase( xref:OSSL_ENCODER_CTX.adoc[OSSL_ENCODER_CTX]* ctx, unsigned char const* kstr, size_t klen); ---- == Return Value 1 on success, or 0 on failure. == Parameters [cols="1,4"] |=== | Name| Description | *ctx* | Encoder context to configure. | *kstr* | Passphrase bytes (not necessarily NUL‐terminated). | *klen* | Length of `kstr` in bytes. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#