OSSL_PARAM_construct_octet_ptr

Construct an OSSL_PARAM that references an existing octet buffer via pointer.

Synopsis

Declared in <openssl/params.h>

OSSL_PARAM
OSSL_PARAM_construct_octet_ptr(
    char const* key,
    void** buf,
    size_t bsize);

Return Value

OSSL_PARAM of type OSSL_PARAM_OCTET_PTR.

Parameters

NameDescription
keyParameter name.
bufAddress of a void* that points at (or receives) the octet data.
bsizeSize of the buffer addressed by *buf when writing, or 0 when only reading.