Set a legacy PEM password callback used to prompt for a passphrase.
Declared in <openssl/encoder.h>
int
OSSL_ENCODER_CTX_set_pem_password_cb(
OSSL_ENCODER_CTX* ctx,
pem_password_cb* cb,
void* cbarg);
1 on success, or 0 on failure.
| Name | Description |
|---|---|
| ctx | Encoder context to configure. |
| cb | PEM-style password callback, or NULL to clear. |
| cbarg | Opaque argument passed to cb. |