Copy a UTF-8 string OSSL_PARAM into a caller-provided or allocated buffer.
Declared in <openssl/params.h>
int
OSSL_PARAM_get_utf8_string(
OSSL_PARAM const* p,
char** val,
size_t max_len);
1 on success, or 0 on failure.
| Name | Description |
|---|---|
| p | Parameter of type OSSL_PARAM_UTF8_STRING. |
| val | When *val is NULL, receives a newly allocated copy; otherwise writes into the buffer of size max_len. |
| max_len | Capacity of *val when non-NULL (including space for the NUL); ignored when allocating. |