ASN1_TYPE_pack_sequence

Encode a typed structure as a SEQUENCE and store it in an ASN1_TYPE.

Synopsis

Declared in <openssl/asn1.h>

ASN1_TYPE*
ASN1_TYPE_pack_sequence(
    ASN1_ITEM const* it,
    void* s,
    ASN1_TYPE** t);

Return Value

ASN1_TYPE holding the packed SEQUENCE, or NULL on error.

Parameters

NameDescription
itASN.1 item describing the SEQUENCE type of s.
sStructure instance to encode (type implied by it).
tOptional destination ASN1_TYPE pointer; when non-NULL, *t is reused or allocated.