OSSL_PARAM_get_utf8_string

Copy a UTF-8 string OSSL_PARAM into a caller-provided or allocated buffer.

Synopsis

Declared in <openssl/params.h>

int
OSSL_PARAM_get_utf8_string(
    OSSL_PARAM const* p,
    char** val,
    size_t max_len);

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
pParameter of type OSSL_PARAM_UTF8_STRING.
valWhen *val is NULL, receives a newly allocated copy; otherwise writes into the buffer of size max_len.
max_lenCapacity of *val when non-NULL (including space for the NUL); ignored when allocating.