Convert an ASCII/ISO-8859-1 string to PKCS#12 BMPString form (zero-extended UTF-16BE).
Declared in <openssl/pkcs12.h>
unsigned char*
OPENSSL_asc2uni(
char const* asc,
int asclen,
unsigned char** uni,
int* unilen);
Pointer to the BMPString (same as *uni when uni is non-NULL), or NULL on error.
| Name | Description |
|---|---|
| asc | Input octets (typically ASCII or Latin-1). |
| asclen | Length of asc in bytes, or -1 to use strlen(). |
| uni | Optional address of pointer updated to the allocated BMPString buffer. |
| unilen | Optional address to receive BMPString length in bytes (including double NUL). |