OSSL_PARAM_set_octet_ptr

Set an OSSL_PARAM that references an existing octet buffer without copying.

Synopsis

Declared in <openssl/params.h>

int
OSSL_PARAM_set_octet_ptr(
    OSSL_PARAM* p,
    void const* val,
    size_t used_len);

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
pParameter of type OSSL_PARAM_OCTET_PTR to update.
valAddress of the caller-owned octet data.
used_lenNumber of meaningful bytes at val.