[#OSSL_ENCODER_CTX_set_cipher] = OSSL_ENCODER_CTX_set_cipher :mrdocs: Select the cipher used to encrypt encoded private‐key material. == Synopsis Declared in `<openssl/encoder.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int OSSL_ENCODER_CTX_set_cipher( xref:OSSL_ENCODER_CTX.adoc[OSSL_ENCODER_CTX]* ctx, char const* cipher_name, char const* propquery); ---- == Return Value 1 on success, or 0 on failure. == Parameters [cols="1,4"] |=== | Name| Description | *ctx* | Encoder context to configure. | *cipher_name* | Cipher algorithm name (for example "AES‐256‐CBC"), or NULL to clear. | *propquery* | Property query for fetching the cipher, or NULL. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#