OSSL_PARAM_get_octet_ptr

Return a pointer to the octet data referenced by an OSSL_PARAM_OCTET_PTR parameter.

Synopsis

Declared in <openssl/params.h>

int
OSSL_PARAM_get_octet_ptr(
    OSSL_PARAM const* 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.
valReceives the address of the referenced octet data (not a copy).
used_lenOptional; receives the number of meaningful bytes.