Set a passphrase used when the encoder encrypts private-key output.
Declared in <openssl/encoder.h>
int
OSSL_ENCODER_CTX_set_passphrase(
OSSL_ENCODER_CTX* ctx,
unsigned char const* kstr,
size_t klen);
1 on success, or 0 on failure.
| Name | Description |
|---|---|
| ctx | Encoder context to configure. |
| kstr | Passphrase bytes (not necessarily NUL-terminated). |
| klen | Length of kstr in bytes. |