[#OPENSSL_asc2uni]
= OPENSSL&lowbar;asc2uni
:mrdocs:

Convert an ASCII&sol;ISO&hyphen;8859&hyphen;1 string to PKCS&num;12 BMPString form (zero&hyphen;extended UTF&hyphen;16BE)&period;

== Synopsis

Declared in `&lt;openssl&sol;pkcs12&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
unsigned char*
OPENSSL&lowbar;asc2uni(
    char const* asc,
    int asclen,
    unsigned char** uni,
    int* unilen);
----

== Return Value

Pointer to the BMPString (same as &ast;`uni` when `uni` is non&hyphen;NULL), or NULL on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *asc*
| Input octets (typically ASCII or Latin&hyphen;1)&period;
| *asclen*
| Length of `asc` in bytes, or &hyphen;1 to use strlen()&period;
| *uni*
| Optional address of pointer updated to the allocated BMPString buffer&period;
| *unilen*
| Optional address to receive BMPString length in bytes (including double NUL)&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
