Callback that obtains a passphrase, optionally guided by OSSL_PARAM descriptors.
Declared in <openssl/core.h>
typedef int OSSL_PASSPHRASE_CALLBACK(char*, size_t, size_t*, OSSL_PARAM const[], void*);
1 on success, or 0 on failure / cancellation.
| Name | Description |
|---|---|
| pass | Output buffer for the passphrase octets (not necessarily NUL-terminated). |
| pass_size | Capacity of pass in bytes. |
| pass_len | Receives the number of bytes written to pass. |
| params | Optional parameters describing UI prompts / verification, or NULL. |
| arg | Caller-supplied opaque pointer. |