OSSL_PARAM_get_octet_string_ptr

Return a pointer to the octet-string contents of an OSSL_PARAM without copying.

Synopsis

Declared in <openssl/params.h>

int
OSSL_PARAM_get_octet_string_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_STRING.
valReceives a pointer to the internal octets (do not free).
used_lenOptional; receives the number of bytes at *val.