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