[#OPENSSL_uni2utf8] = OPENSSL_uni2utf8 :mrdocs: Convert a PKCS#12 BMPString (big‐endian UTF‐16) to a UTF‐8 C string. == Synopsis Declared in `<openssl/pkcs12.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- char* OPENSSL_uni2utf8( unsigned char const* uni, int unilen); ---- == Return Value Newly allocated UTF‐8 string, or NULL on error. Falls back to OPENSSL_uni2asc() if decoding fails. Caller frees with OPENSSL_free(). == Parameters [cols="1,4"] |=== | Name| Description | *uni* | BMPString octets (even length). | *unilen* | Length of `uni` in bytes. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#