OSSL_PARAM_get_octet_string

Copy an OSSL_PARAM octet-string value into a caller buffer.

Synopsis

Declared in <openssl/params.h>

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

Return Value

1 on success, or 0 on error.

Parameters

NameDescription
pParameter locating the octet string.
valAddress of a buffer pointer that receives up to max_len bytes; may allocate when *val is NULL depending on call pattern.
max_lenCapacity of the destination buffer in bytes.
used_lenOptional output set to the number of bytes copied or required.