Allocate an empty ASN1_STRING with the given ASN.1 string type.

Synopsis

Declared in <openssl/asn1.h>

ASN1_STRING*
ASN1_STRING_type_new(int type);

Return Value

New ASN1_STRING, or NULL on allocation failure.

Parameters

Name

Description

type

ASN.1 tag such as V_ASN1_UTF8STRING or V_ASN1_OCTET_STRING.

Created with MrDocs