ASN1_PRINTABLE_type

Choose a PrintableString / IA5String / T61String type that can hold s.

Synopsis

Declared in <openssl/asn1.h>

int
ASN1_PRINTABLE_type(
    unsigned char const* s,
    int max);

Return Value

V_ASN1_PRINTABLESTRING, V_ASN1_IA5STRING, or V_ASN1_T61STRING.

Parameters

NameDescription
sBytes to classify; NULL is treated as PrintableString.
maxNumber of bytes at s, or a negative value to use strlen(s).