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
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 |
Capacity of *`val` when non‐NULL (including space for the NUL); ignored when allocating. |
Created with MrDocs