Like ASN1_mbstring_copy(), also enforcing minimum and maximum character counts.
Synopsis
Declared in <openssl/asn1.h>
int
ASN1_mbstring_ncopy(
ASN1_STRING** out,
unsigned char const* in,
int len,
int inform,
unsigned long mask,
long minsize,
long maxsize);
Return Value
Positive ASN.1 string type on success, or a negative value on error.
Parameters
Name |
Description |
out |
Destination; if NULL a new string is allocated, otherwise *`out` may be reused. |
in |
Input bytes in the encoding given by |
len |
Length of |
inform |
Input encoding (MBSTRING_ASC, MBSTRING_BMP, MBSTRING_UNIV, or MBSTRING_UTF8). |
mask |
B_ASN1_* bitmask of permitted output string types (0 selects the default mask). |
minsize |
Minimum character count (0 disables the check). |
maxsize |
Maximum character count (0 disables the check). |
Created with MrDocs