Callback that obtains a passphrase, optionally guided by OSSL_PARAM descriptors.

Synopsis

Declared in <openssl/core.h>

typedef int OSSL_PASSPHRASE_CALLBACK(char*, size_t, size_t*, OSSL_PARAM const[], void*);

Return Value

1 on success, or 0 on failure / cancellation.

Parameters

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.

Created with MrDocs