Supply a passphrase for decrypting encoded private-key input.
Declared in <openssl/decoder.h>
int
OSSL_DECODER_CTX_set_passphrase(
OSSL_DECODER_CTX* ctx,
unsigned char const* kstr,
size_t klen);
1 on success, or 0 on error.
| Name | Description |
|---|---|
| ctx | Decoder context to configure. |
| kstr | Passphrase bytes. |
| klen | Length of kstr in bytes. |