OSSL_PARAM_construct_utf8_string

Construct an OSSL_PARAM describing a UTF-8 string buffer.

Synopsis

Declared in <openssl/params.h>

OSSL_PARAM
OSSL_PARAM_construct_utf8_string(
    char const* key,
    char* buf,
    size_t bsize);

Return Value

Populated OSSL_PARAM value (by value).

Parameters

NameDescription
keyParameter name.
bufStorage for the UTF-8 string (writable buffer owned by the caller).
bsizeCapacity of buf in bytes; 0 means use strlen(buf).