Create or update an ASN.1 string from multibyte input using the string table for nid.
Declared in <openssl/asn1.h>
ASN1_STRING*
ASN1_STRING_set_by_NID(
ASN1_STRING** out,
unsigned char const* in,
int inlen,
int inform,
int nid);
Resulting ASN1_STRING, or NULL on error.
| Name | Description |
|---|---|
| out | Optional destination; if NULL a new string is allocated and returned. |
| in | Input bytes in the encoding given by inform. |
| inlen | Length of in in bytes, or -1 if in is NUL-terminated. |
| inform | Input encoding (MBSTRING_ASC, MBSTRING_BMP, MBSTRING_UNIV, or MBSTRING_UTF8). |
| nid | Object NID whose ASN1_STRING_TABLE entry selects allowed string types and size limits. |